Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

what is object's lock and which objects have locks ?

Thu Nov 06, 2008 11:15 pm

What is an object's lock and which objects have locks?



Re: what is object's lock and which objects have locks ?

Thu Nov 06, 2008 11:17 pm

An object's lock is a mechanism that is used by multiple threads to obtain synchronized access to the object. A thread may execute a synchronized method of an object only after it has acquired the object's lock. All objects and classes have locks. A class's lock is acquired on the class's Class object.

Post a reply
  Related Posts  to : what is object's lock and which objects have locks ?
 thread cannot acquire a lock on an object     -  
 Using Web Objects in XML (WOX) to serialize Java objects XML     -  
 lock be acquired on a class     -  
 Get all objects for an entity     -  
 Smart Objects in photoshop     -  
 Eligible objects for garbage collectors     -  
 queue of objects keep track of the front and rear     -  
 invalid argument on IE with script to center objects     -  
 Connection object in jsp     -  
 use out object in a method at jsp     -