Summary

This lesson summarizes the chapter with some guidelines to use thread API.

We'll cover the following...

You have been introduced the basics of the pthread library, including thread creation, building mutual exclusion via locks, and signaling and waiting via condition variables in this chapter. You don’t need much else to write robust and efficient multi-threaded code, except patience and a great deal of care!

Let’s end the chapter with a set of tips that might be useful to you when you write multi-threaded code (see the aside section below). There are other aspects of the API that are interesting; if you want more information, type man -k pthread on a Linux system to see over one hundred APIs that make up the entire ...