In this chapter we will explore the Raspberry Pi 2 further via the C/C++ languages and a technology known as threads.
This chapter builds upon the previous material and will help you to understand how applications can run tasks concurrently. In addition to this, you will see how these concurrent operations can access a shared memory space and manipulate its value without overwriting each other's computations.
Topics also covered include the following:
A look at pthreads
Writing threaded applications in C
Adapting a C-based threaded application for C++
Understanding mutexes
To start with we will look at what threads are before writing several applications in both C and C++.