Extensions to POSIX thread

The POSIX thread standard leaves certain aspects of implementation defined, unspecified, or even undefined. Therefore, most UNIX operating system vendors provide several extensions in order to complement those areas in the POSIX thread standard.

On AIX, those extension subroutines are starting from pthread_ and ending in _np to signify that a library routine is non-portable and should not be used in code that will be ported to other UNIX-based systems (see Table D-7 on page 482).

Table D-7. Non-portable thread routines in AIX
RoutineRoutine (continued)
pthread_atfork_unregister_np()pthread_getthrds_np()
pthread_attr_getsuspendstate_np()pthread_getunique_np()
pthread_attr_setstacksize_np()pthread_join_np()
pthread_attr_setsuspendstate_np() ...

Get Developing and Porting C and C++ Applications on AIX 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.