4 ms·
Synchronized methods and blocks generate different bytecode, but according to the spec, have "exactly the same effect". http://java.sun.com/docs/books/jls/thir
by ddlatham 16y ago
Synchronized methods and blocks generate different bytecode, but according to the spec, have "exactly the same effect".
http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.4.3.6 http://java.sun.com/docs/books/jls/third_edition/html/classe...
http://stackoverflow.com/questions/417285/equivalent-code-for-instance-method-synchronization-in-java/417382#417382 http://stackoverflow.com/questions/417285/equivalent-code-fo...