aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 865
    
    5
Synchronization (The Java Tutorials - Concurrency)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Synchronized block on classes and synchronization in inner classes
 
Similar Threads
Is this correct?
Synchronized class
Synchronized block K&B problem
Much confused about static and non-static synchronization
Lock Reentrance