Chapter 5. Advanced threaded programming

<poem> <verse> <line>“Take some more tea,” the March Hare said to Alice, very earnestly.</line> <line>“I’ve had nothing yet,” Alice replied in an offended tone:</line> <line>“so I ca’n’t take more.”</line> <line>“You mean you ca’n’t take less,” said the Hatter:</line> <line>“it’s very easy to take more than nothing.”</line> <line>—Lewis Carroll, Alice’s Adventures in Wonderland</line> </verse> </poem>

The Pthreads standard provides many capabilities that aren’t needed by many programs. To keep the sections dealing with synchronization and threads relatively simple, the more advanced capabilities are collected into this additional section.

Section 5.1 describes a facility to manage initialization of data, ...

Get Programming with POSIX ® Threads now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.