Question OS-SYNC-0068
HardIn the bounded-buffer solution, why must a producer call wait(empty) before wait(mutex)?
- A.
Otherwise it could hold the mutex while waiting for an empty slot, deadlocking the consumer
- B.
The order does not matter
- C.
Sign up free to see the answer and a step-by-step explanation.