Random tech talk ....
Pages
Home
Java Concurrency Tidbits
Random Thoughts - mostly from other great minds ..but sometimes my own
Thursday, February 17, 2011
Synchronized methods vs Synchronized block
Synchronized method :
JVM (built into JVM)
automatically acquires object's lock
calls the method
releases the lock
If an exception occurs thread automatically releases the lock
http://stackoverflow.com/questions/574240/synchronized-block-vs-synchronized-method
Newer Post
Older Post
Home