Question: What is the difference between a binary semaphore and a counting semaphore? A binary semaphore can only take two values, while a counting semaphore can
What is the difference between a binary semaphore and a counting semaphore?
A binary semaphore can only take two values, while a counting semaphore can take any positive integer value.
A binary semaphore is used for mutual exclusion, while a counting semaphore is used for synchronization.
A binary semaphore is used for synchronization, while a counting semaphore is used for mutual exclusion.
There is no difference between a binary semaphore and a counting semaphore.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
