multithreading - What's a monitor in Java? - Stack …

2018-4-26 · And @Pablo - there's no such thing as a monitor for a method; monitors only exist for objects, which would be the enclosing instance for most methods, or the corresponding Class object for static methods. If you already have a synchronized method1() and you declare method2() synchronized, no new monitors are created and in fact invoking either method (on the same object) will attempt to …

Alexa Traffic


Listing Links