Java synchronized method
First of all, forget about synchronized methods. A so-called synchronized method… synchronized AnyType foobar(…) { doSomething(); } Is nothing but a shortcut way of writing this: AnyType foobar(…) { synchronized(this) { doSomething(); } } There is nothing special about the method in either case. What is special is the synchronized block, and what a synchronized … Read more