This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Synchronized block on classes and synchronization in inner classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Synchronized block on classes and synchronization in inner classes" Watch "Synchronized block on classes and synchronization in inner classes" New topic
Author

Synchronized block on classes and synchronization in inner classes

Jdinesh Tiwari
Ranch Hand

Joined: Jan 13, 2013
Posts: 35
Synchronization using inner classes

Synchronized blocks can also be specified on a class lock:

May refer me some good content over these two

Thanks

Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 866
    
    5
Synchronization (The Java Tutorials - Concurrency)
 
 
subject: Synchronized block on classes and synchronization in inner classes
 
Similar Threads
Synchronized block K&B problem
Much confused about static and non-static synchronization
Is this correct?
Synchronized class
Lock Reentrance