Contention Scope
In POSIX 1003.1c-compliant systems, support for contention scope is optional. The Threads Module determines whether contention scope is supported by testing for the definition of the macro _POSIX_THREAD_PRIORITY_SCHEDULING. Even if the API indicates that priority scheduling is supported, the environment may only allow one policy.
The HP implementation of POSIX 1003.1c supports both process and system scope threads.
The Threads Module HP POSIX implementation maps its RWContentionScope values to the underlying POSIX 1003.1c API as follows:
Table 4 – HP-UX: Mapping of RWContentionScope to POSIX 1003.1c values
Threads Module RWContentionScope
POSIX 1003.1c Contention Scope
RW_THR_PROCESS_SCOPE
PTHREAD_SCOPE_PROCESS
RW_THR_SYSTEM_SCOPE
PTHREAD_SCOPE_SYSTEM