EvenOdd Variants-Part 2.1

File: EvenOddVariants.java

Description:

In the Even odd variant series so far, for the code submitted, I requested Dr. Heinz Kabutz, Java Champion, to review and consider it as a topic for Java Specialists Newsletter published by him. The review comments have been addressed in this article.

Further, the idea has been developed in a better way by Dr. Heinz in the article http://www.javaspecialists.eu/archive/Issue188.html

Further a bench marking has been done to verify which is the fastest approach. Also, few points that have been improved over the previous versions are as follows:
1) Addressing the spurious wake up scenarios in case of wait()/ await()
2) Initial count value in case of the approach using CountUpDownLatch
3) Removing the DeadLockBreaker in a couple of the approaches.


Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione