Skip to Main Content
Extreme C
book

Extreme C

by Kamran Amini
October 2019
Intermediate to advanced content levelIntermediate to advanced
822 pages
20h 45m
English
Packt Publishing
Content preview from Extreme C

Chapter 16

Thread Synchronization

In the previous chapter, we explained how to create and manage a POSIX thread. We also demonstrated two of the most common concurrency issues: race conditions and data races.

In this chapter, we are going to complete our discussion about multithreaded programming using the POSIX threading library and give you the required skills to control a number of threads.

If you remember from Chapter 14, Synchronization, we showed that concurrency-related problems are not actually issues; rather, they are consequences of the fundamental properties of a concurrent system. Therefore, you are likely to encounter them in any concurrent system.

We showed in the previous chapter that we could indeed produce such issues with the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Effective C

Effective C

Robert C. Seacord
Modern C

Modern C

Jens Gustedt

Publisher Resources

ISBN: 9781789343625Supplemental Content