Kishan Jaiswal
Kishan Jaiswal

Reputation: 19

Difference between Semaphore, mutual exclusion, monitor with respect to achieve the synchronization

I'm studying Operating System with myself and I'm getting very confused that what is the difference in Semaphore, Monitor and mutual exclusion, all this terms are sound very similar to achieve synchronization ?

Upvotes: 0

Views: 339

Answers (1)

user3344003
user3344003

Reputation: 21647

In the old days we just talked about LOCKS. There are generally two types of locks that can be put on a resource

  • Exclusive access to a resource
  • Multiple Read Only access to a resource.

MUTEX/MUTUAL EXCLUSION/LOCK are all the same thing.

There are many ways to implement locks. Semaphores and monitors are methods of implementing locks.

Upvotes: 1

Related Questions