Semaphore vs. Mutex

Good posts about Semaphore vs. Mutex

MUTEX IS NOT THE SAME AS BINARY SEMAPHORES.

Important difference between Mutex and Semaphore.

– Mutex lock is released by the thread which have acquired the lock.

– Semaphore can be released by other threads.

Semaphore is suitable for producer & consumer pattern.

Comments

comments