Counting signals is not the best way to describe a counting semaphore, as a binary will do the same thing. What do the values correspond to? I do not see use cases for either. Explain the difference between binary semaphores and counting semaphores. Provide an example use case for each. The difference between a binary semaphore and a counting semaphore is that one has a larger size than the counting one. the the counting Semaphore Counts the signals.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter13: Structures
Section: Chapter Questions
Problem 4PP
icon
Related questions
Question

Please provide the correct answer for this question that is incorrect, explain why my answer is wrong and what I can do differently next time so that I can do better next time. 

Counting signals is not the best way to describe a counting semaphore, as a binary will
do the same thing. What do the values correspond to? I do not see use cases for either.
Explain the difference between binary semaphores and counting semaphores. Provide an example use
case for each.
The difference between a binary semaphore and
a counting semaphore is that one has a larger size
than the counting one. the
the counting Semaphore
Counts the signals.
Transcribed Image Text:Counting signals is not the best way to describe a counting semaphore, as a binary will do the same thing. What do the values correspond to? I do not see use cases for either. Explain the difference between binary semaphores and counting semaphores. Provide an example use case for each. The difference between a binary semaphore and a counting semaphore is that one has a larger size than the counting one. the the counting Semaphore Counts the signals.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr