Exercise
Enhance your understanding and skills by attempting this exercise on the topic of locked data structures.
We'll cover the following...
In this exercise, you’ll gain some experience with writing concurrent code and measuring its performance. Learning to build code that performs well is a critical skill and thus gaining a little experience here with it is quite worthwhile.
You will have to attempt this exercise locally, however, feel free to discuss your insights on the Discuss thread.
Questions
-
We’ll start by redoing the measurements within this chapter. Use the call
gettimeofday()
to measure time within your program. How accurate is ...