HP-UX Reference (11i v2 04/09) - 5 Miscellaneous Topics (vol 9)
p
pthread_scope_options(5) pthread_scope_options(5)
PTHREAD_FORCE_SCOPE_SYSTEM
will take higher precedence, and system scope threads will be
forced even when
pthread_attr_setscope()
is used to specify the process scope.
3. If the following environmental variables are set (say, using sh-posix):
export PTHREAD_DEFAULT_SCOPE_PROCESS=1
export PTHREAD_FORCE_SCOPE_SYSTEM=ON
PTHREAD_FORCE_SCOPE_SYSTEM
will take higher precedence, and system scope is forced for all
the threads created in the process.
4. If the following environmental variables are set (say, using sh-posix):
export PTHREAD_DEFAULT_SCOPE_SYSTEM=on
export PTHREAD_FORCE_SCOPE_PROCESS=ON
PTHREAD_FORCE_SCOPE_PROCESS
will take higher precedence, and process scope is forced for all
the threads created in the process.
SEE ALSO
pthread(3T), pthread_attr_init(3T), pthread_attr_setscope(3T).
HP-UX 11i Version 2: September 2004 − 3 − Hewlett-Packard Company Section 5−−273