Summary

This chapter introduced us to the concept of threads. First, we learned what they are and why they are useful. Following this we studied how they can be implemented in both C and C++. This allowed us to apply some of the theoretical concepts in practice. Our programs showed how we can create multiple threads, use mutexes to lock memory locations for concurrent updates, and finally how to terminate threads.

Through studying threads in C and C++ we built upon some of what we have learned in previous chapters.

Next we will look at how we implement a USB HDD as our main storage mechanism rather than use the microSD card. This will allow us to increase the storage capacity of the Raspberry Pi and also learn a little about the Raspberry Pi's boot process.