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

Hi,

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

Thanks,

Advertisement
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/