Question 20Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)

The "producer-consumer problem" is a classic synchronization problem that involves:

  1. ATwo processes competing for the same resources
  2. BTwo processes exchanging data through shared buffers
  3. CTwo processes competing for CPU time
  4. DTwo processes communicating over a network
Show answerHide answer

Correct answer: (B) Two processes exchanging data through shared buffers

Explanation

In the producer-consumer (bounded buffer) problem, a producer puts items into a shared buffer and a consumer removes them, so access must be synchronised to avoid overflow, underflow and race conditions.

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM)

This is question 20 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.