• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is mutually exclusive lock?

 
Ranch Hand
Posts: 45
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic