Question
In the bounded-buffer problem, what does the empty semaphore count?
Select an option. Your answer will be checked instantly.
Correct Answer: C. The number of unused buffer slots
Explanation:
The empty semaphore prevents a producer from inserting when no free slot remains.
It is decremented before insertion and incremented after a consumer removes an item.
Leave a Reply