Vidyalelo
Computer Fundamentals · Q359

Operating System

Computer Related · Computer Fundamentals · question 359

Q359

Producer consumer problem can be solved using

A.
semaphores
B.
event counters
C.
monitors
D.
all of the above
Answer
E.
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.