May 2021
Intermediate to advanced
432 pages
7h 59m
English
In this chapter, we will learn what threads are and how to use them in Linux. We will write several programs using POSIX threads, otherwise known as pthreads. We will also learn what race conditions are and how to prevent them by using mutexes. Then, we'll learn how to make a mutex program more efficient. Lastly, we'll learn what condition variables are.
Knowing how to write threaded programs will make them faster and more efficient.
In this chapter, we will cover the following recipes:
Let's get started! ...
Read now
Unlock full access