This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes Synchronizing Static Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Synchronizing Static Methods" Watch "Synchronizing Static Methods" New topic

Synchronizing Static Methods

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
Are these 3 methods synchronized on the same lock? That is, are static methods synchronized on the class object for the class?

In thread 1

In thread 2

Mike Simmons
Ranch Hand

Joined: Mar 05, 2008
Posts: 3003
Yes, they are.
jQuery in Action, 2nd edition
subject: Synchronizing Static Methods
Similar Threads
synchronized keywords in static methods
some question about static methods and Thread safety , please
Class Wide Lock..??
Reg : Synchronization access
Thread and String literal pool