Comparison- Mutex and Semaphore

Few of the major difference between mutex and semaphore are

Mutex is a locking mechanism. Semaphore is a signaling mechanism.
Mutex is used for solving critical section problems. Semaphore is used for event notification that is one thread can notify the other about a certain event.
The thread which acquired the lock can only release the lock. In semaphore, it can be released by other threads by use of the signal.
Mutex allows the multiple threads to access a single resource but one at a time. Semaphore allows multiple threads to access the finite instance of resources.

Relevant Posts:

Categories: Operating system (OS)

2 replies


  1. Semaphore - Tech Access
  2. Index of Operating System - Tech Access

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: