Instructions For Exercise
Explore how to implement and analyze various versions of the producer consumer problem using locks and conditional variables. Learn to run and trace real code, adjust sleep timings for threads, and understand correct synchronization methods in concurrent programming.
We'll cover the following...
We'll cover the following...
This exercise lets you explore some real code that uses locks and condition variables to implement various forms of the producer/consumer queue discussed in the chapter. You’ll look at the real code, run it in various configurations, and use it to learn about what works and what doesn’t, as well as other intricacies.
The different versions of the ...