You mention that Java 1.4's synchronized HashMap is coarse-grained. Does Java just put locks around the entire inner statement? Is there any finer-grained way to implement synchronized?
You mention that Java 1.4's synchronized HashMap is coarse-grained. Does Java just put locks around the entire inner statement? Is there any finer-grained way to implement synchronized?