Open System Services Programmer's Guide

sigaction()
sigsuspend()
sleep()
wait()
waitpid()
Attributes Defined by Threads Macros
The attributes of the PUT Model library are determined by macros in unistd.h. Table 65 lists the
principal macros that influence the HP implementation for NonStop servers.
Table 65 Attributes of the POSIX User Thread Model Library Defined by Macros
Description in the POSIX User Thread Model LibraryMacro or Attribute
Implementation supports threads options. Defined as 0
(zero)
_POSIX_THREADS
Implementation supports thread-safe functions. Defined as
0 (zero).
_POSIX_THREAD_SAFE_FUNCTIONS
A mutex or condition variable can be operated on only by
threads in the same process that initialized the mutex or
condition variable. Defined as -1.
_POSIX_THREAD_PROCESS_SHARED
Defined as 0 (zero) and only supports threads created with
the PTHREAD_SCOPE_PROCESS attribute. Threads contend
_POSIX_THREAD_PRIORITY_SCHEDULING
directly with other threads within their process. This attribute
cannot be altered. The scheduling allocation domain size
is 1. Threads are always bound to the same processor as
the parent thread.
Has the value PTHREAD_EXPLICIT_SCHED. The
scheduling policy and associated attributes, such as
Thread scheduling attribute: inheritsched
priority, are set to the corresponding values from the
attributes object during thread creation. This attribute can
be altered to PTHREAD_INHERIT_SCHED (so that the
scheduling policy and attributes are inherited from the
creating thread) by using
pthread_attr_setinheritsched().
The default value is SCHED_FIFO. This attribute cannot be
altered.
Thread scheduling attribute: schedpolicy
Defined as -1. The prioceiling and protocol
attributes are not defined.
Mutex initialization scheduling attributes:
_POSIX_THREAD_PRIO_INHERIT
_POSIX_THREAD_PRIO_PROTECT
Defined as 0 (zero). The thread creation stack size attribute
can be set in the attribute object.
Thread creation attribute:
_POSIX_THREAD_ATTR_STACKSIZE
Supports read and write locks. Defined as -1.Attribute: _POSIX_READER_WRITER_LOCKS
Defined as -1. These attributes cannot be altered.Thread creation attributes:
_POSIX_THREAD_CPUTIME
_POSIX_THREAD_SPORADIC_SERVER
The location of the storage to be used for the stack of the
created thread cannot be altered. Defined as -1.
Thread creation attribute:
_POSIX_THREAD_ATTR_STACKADDR
The default value is PTHREAD_CREATE_JOINABLE (that
is, storage associated with the thread is reclaimed when
Thread creation attribute: detachstate
the thread that created it calls a join()). This attribute
can be altered using
pthread_attr_setdetachstate().
382 Using the POSIX User Thread (PUT) Model Library