Q359
Producer consumer problem can be solved using
A.
semaphores
B.
event counters
C.
monitors
D.
all of the above
AnswerE.
none of the above
Answer: Option D
Solution
Answer: Option D
Solution:
Producer consumer problem is a classical synchronization problem. We can solve this problem by using semaphores. A semaphore is an integer variable that can be accessed only through two standard operations: wait and signal.