aspose file tools
The moose likes Threads and Synchronization and the fly likes What is mutually exclusive lock? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "What is mutually exclusive lock?" Watch "What is mutually exclusive lock?" New topic
Author

What is mutually exclusive lock?

Senthil Kumar Sekar
Ranch Hand

Joined: Aug 08, 2010
Posts: 43

My understanding is that two events is said to be mutually exclusive when those two events cannot occur at the same time.

Now, Mutually exclusive lock is two threads cannot acquire object lock at the same time?

So, Acquiring Object's lock (when entering Synchronised block/method) is said to be mutually exclusive lock which is always?

Thanks.

Regards
Senthil Kumar Sekar
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 5901
    
    6

Senthil Kumar Sekar wrote:
Now, Mutually exclusive lock is two threads cannot acquire object lock at the same time?


Yes.

So, Acquiring Object's lock (when entering Synchronised block/method) is said to be mutually exclusive lock which is always?


Yes.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: What is mutually exclusive lock?
 
Similar Threads
Stateless Session Bean/Entity Bean Creation...
What is a mutex?
Marcus Green's mock up test questions
thread blocking!
Mutually Exclusive lock