The "producer-consumer problem" is a classic synchronization problem that…
2025
The "producer-consumer problem" is a classic synchronization problem that involves:
Answer: B. Two processes exchanging data through shared buffers — The producer-consumer problem involves two processes sharing a fixed-size buffer. One process generates data while the other removes it, requiring…
- A.
Two processes competing for the same resources
- B.
Two processes exchanging data through shared buffers
- C.
Two processes competing for CPU time
- D.
Two processes communicating over a network
Attempted by 236 students.
Show answer & explanation
Correct answer: B
The producer-consumer problem involves two processes sharing a fixed-size buffer. One process generates data while the other removes it, requiring coordination to prevent overflow or underflow.
Explore the full course: Bihar Stet Paper Ii Computer Science