This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes What is mutually exclusive lock? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Threads and Synchronization
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: 45

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: 6109
    
    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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: What is mutually exclusive lock?
 
It's not a secret anymore!