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 buffersThe producer-consumer problem involves two processes sharing a fixed-size buffer. One process generates data while the other removes it, requiring…

  1. A.

    Two processes competing for the same resources

  2. B.

    Two processes exchanging data through shared buffers

  3. C.

    Two processes competing for CPU time

  4. 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

Loading lesson…