Question
In the bounded-buffer problem, what does the full semaphore count?
Select an option. Your answer will be checked instantly.
Correct Answer: D. The number of occupied buffer slots containing items
Explanation:
The full semaphore prevents a consumer from removing an item when the buffer is empty.
A producer increments it after placing a new item in the buffer.
Leave a Reply