10. Future standardization

Three primary standardization efforts affect Pthreads programmers. X/Open’s XSH5 is a new interface specification that includes POSIX.1b, Pthreads, and a set of additional thread functions (part of the Aspen fast-track submission). The POSIX.1j draft standard proposes to add barriers, read/write locks, spinlocks, and improved support for “relative time” waits on condition variables. The POSIX.14 draft standard (a “POSIX Standard Profile”) gives direction for managing the various options of Pthreads in a multiprocessor environment.

10.1. X/Open XSH5 [UNIX98]

Mutex type attribute:

int pthread_mutexattr_gettype (         const pthread_mutexattr_t *attr, int *type);int pthread_mutexattr_settype (         pthread_mutexattr_t ...

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.