5. Advanced threaded programming

“Take some more tea,” the March Hare said to Alice, very earnestly.“I’ve had nothing yet,” Alice replied in an offended tone:      “so I ca’n’t take more.”“You mean you ca’n’t take less,” said the Hatter:      “it’s very easy to take more than nothing.”

Lewis Carroll, Alice’s Adventures in Wonderland

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, particularly within a library, in a multithreaded environment.

Section 5.2 describes “attributes objects,” ...

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

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