Question: Implement a Producer/Consumer program from Chapter 5 in Operating systems internal and design principles. Insert functionality to test how long it takes the producer to

Implement a Producer/Consumer program from Chapter 5 in Operating systems internal and design principles. Insert functionality to test how long it takes the producer to insert a new item and the consumer to remove one. Collect a minimum of 10,000 times for each of the producer/consumer pairs. In addition, keep track of how many items are in the shared region when the producer adds or the consumer removes. Create histograms for the times and counts. How big was your storage space (i.e., how many items can be placed into it by the producer)? In your report, describe the meaning of the histograms.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!