Showing posts with label binary semaphore. Show all posts
Showing posts with label binary semaphore. Show all posts

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 and 1 as values. They are used to implement mutual exclusion and synchronize concurrent processes.