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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.