Question
Download Solution PDFWhich one of the following statements is correct with respect to bounded buffer in shared memory systems?
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFBounded buffer: Bounded buffer helps control the flow of data between producers and consumers, ensuring that producers do not overwhelm the system with too much data and consumers do not try to consume non-existent data.
- The consumer must wait if the buffer is empty because there are no items to consume.
- The producer must wait if the buffer is full because there is no space to produce and place new items.
- This ensures that the producer and consumer operate in a synchronized manner.
Producer operation: Producers add items to the buffer. A producer must wait if the buffer is full.
Consumer operation: Consumers remove items from the buffer. A consumer must wait if the buffer is empty.
Here, option 2 is correct.
Last updated on Jun 23, 2025
-> UPSC ESE result 2025 has been released. Candidates can download the ESE prelims result PDF from here.
-> UPSC ESE admit card 2025 for the prelims exam has been released.
-> The UPSC IES Prelims 2025 will be held on 8th June 2025.
-> The selection process includes a Prelims and a Mains Examination, followed by a Personality Test/Interview.
-> Candidates should attempt the UPSC IES mock tests to increase their efficiency. The UPSC IES previous year papers can be downloaded here.