aspose file tools*
The moose likes Threads and Synchronization and the fly likes  static synchronized block Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark " static synchronized block" Watch " static synchronized block" New topic
Author

static synchronized block

Santosh Shiroor
Greenhorn

Joined: May 18, 2008
Posts: 1
Difference between static synchronized block and synchronized block.
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Originally posted by Santosh Shiroor:
Difference between static synchronized block and synchronized block.


I assume you are asking difference between a static synchronized method and synchronized method.
The difference is the object that is used as a monitor.
A static synchronized method uses the static member variable "class" as the monitor and synchronized method uses "this" as the monitor.


apigee, a better way to API!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: static synchronized block