What is a binary semaphore? What is its use?

What is a binary semaphore? What is its use?
A binary semaphore is one, which takes only 0 & 1 as values. They are used to implement mutual exclusion & synchronize concurrent processes.

No comments: