Question: what is the difference between binary semaphore and counting semaphore?
Answer: The binary semaphores are quite similar to counting semaphores, but their value is restricted to 0 and 1. ... Counting Semaphore has no mutual exclusion whereas Binary Semaphore has Mutual exclusion. Semaphore means a signaling mechanism whereas Mutex is a locking mechanism.