Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

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

Ads

 
 

Share on Google+Share on Google+

Java Coder
What is an object's lock and which object's have locks?
1 Answer(s)      4 years and 3 months ago
Posted in : Java Beginners

Hi,

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

Thanks,

Ads
View Answers

April 16, 2013 at 5:40 PM


Hi friend,

Locking of object is a technique used in multiple threading to access the object in synchronous manner. All objects and classes have locks.

For reading more please go through the following link

http://www.roseindia.net/java/thread/synchronization.shtml

http://www.roseindia.net/java/thread/


Ads