A mutex says: "I’m using this resource; no one else can use it until I’m done," while a semaphore says: "There are this many resources available; take one if you need it.".
Share this post
Mutex vs. Semaphore
Share this post
A mutex says: "I’m using this resource; no one else can use it until I’m done," while a semaphore says: "There are this many resources available; take one if you need it.".