Processes P1 and P2 have a producer-consumer relationship, communicating by the use of a set of shared buffers. P1: repeat Obtain a full buffer Empty it Return an empty buffer forever P2 P2P2: repeat Obtain a full buffer Empty it Return an empty buffer forever Increasing the number of buffers is likely to do which of the following? I. Increase the rate at which requests are satisfied (throughput) II. Decrease the likelihood of deadlock III. Increase the ease of achieving a correct implementation
Processes P1 and P2 have a producer-consumer relationship, communicating by the use of a set of shared buffers. P1: repeat Obtain a full buffer Empty it Return an empty buffer forever P2 P2P2: repeat Obtain a full buffer Empty it Return an empty buffer forever Increasing the number of buffers is likely to do which of the following? I. Increase the rate at which requests are satisfied (throughput) II. Decrease the likelihood of deadlock III. Increase the ease of achieving a correct implementation Correct Answer I only
Concept
- Increasing the size of the memory allocated to the process or increasing buffer requirement does not change the likelihood of the deadlock and doesn't affect the implementation of the system.
- It can increase the rate at which the requests are satisfied(throughput) larger will be the size of the buffer, larger will be throughput. Therefore the only statement correct is I.
Hence option 3 is the correct answer
মোঃ আরিফুল ইসলাম
Feb 20, 2025