Question: what is the difference between binary semaphore and mutex?
Answer: BINARY SEMAPHORES: Different processes can execute wait or signal operation on a semaphore. Mutexes have ownership, unlike semaphores. Although any thread, within the scope of a mutex, can get an unlocked mutex and lock access to the same critical section of code,only the thread that locked a mutex should unlock it.