synchronized
-
Synchronization with multiple locks
The basic idea is to use separate locks to guard multiple independent state variables of a class, instead of having…
Read More » -
Synchronized method and block
The first level of synchronization is on method scope: public class HelloSync { private Map dictionary = new HashMap(); public…
Read More »