Posted by: Neo on: December 21, 2008
Using jdk 1.6 the cost of blocking synchronization is nearly same as non-blocking counter part. This does not say 1.6 makes it liveness hazard free or deadlock free. But makes it quite fast. A test running 1000 threads doing 100,000 atomic operations each, all the three ways. …