r/programminghomework • u/hanzomain259 • Feb 16 '18
Implement a Producer/Consumer program (C/C++)
Implement a Producer/Consumer program from Chapter 5. 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.
1
Upvotes
View all comments
Show parent comment
1
u/hanzomain259 Feb 18 '18
I figured out all the functionality. Now i'm stuck on how to make a histogram out of an array of 10,000 items?