Difference between Mutex and Binary semaphore.Mutex is meant for mutual exclusion while Binary semaphore is meant for event notification and mutual exclusion. A binary semaphore is a simple "true/false" (locked/unlocked) flag that controls access to a single resource. Mutex can be released only by the thread that acquired it while semaphore can be released by any thread.Difference between Mutex and Binary semaphore.Semaphore synchronizes processes where as mutex synchronizes threads running in the same process.
|