Synchronization article on developerWorks
Jeff Sturm
jsturm@one-point.com
Tue Jul 24 15:41:00 GMT 2001
On 24 Jul 2001, Tom Tromey wrote:
> 3.1 is generally better than 3.0 (not sure why). However, I expected
> more dramatic results from 3.1-with-sync.
Using your bench.java, I see similar results on alpha, e.g. a factor of
22/18 for 3.0.1/3.1 in the empty call.
I don't understand how this author got the results he did. It doesn't
look like he made his source available.
These locks have no contention though. On a test program with high
contention I observed a 2-3x speedup with hash synchronization.
Jeff
More information about the Java
mailing list