pthread_attr_getdetachstate.3t (2010 09)

p
pthread_attr_getdetachstate(3T) pthread_attr_getdetachstate(3T)
(Pthread Library)
ATTRIBUTES: processor and binding_type
The legal values for the processor attribute are:
PTHREAD_SPUINHERIT_NP
Threads created with this processor attribute inherit their processor binding attributes from
the creating thread. This is the default value of the processor attribute. Specifying
PTHREAD_LDOMINHERIT_NP
or PTHREAD_SPUINHERIT_NP
cause both processor binding
and locality domain binding attributes to be inherited. The binding_type attribute is ignored.
PTHREAD_SPUFLOAT_NP
Threads created with this processor attribute are allowed to execute on any processor the sys-
tem chooses. No processor binding is maintained. Specifying
PTHREAD_LDOMFLOAT_NP
or
PTHREAD_SPUFLOAT_NP
cause both processor binding and locality domain binding attri-
butes to be cleared. The thread will be allowed to execute on any processor in the system. The
binding_type attribute is ignored.
(pthread_spu_t)
processor_id
Threads created with this processor attribute are bound to the processor specified in the pro-
cessor parameter. The type of binding (advisory or mandatory) is specified in the binding_type
attribute.
PTHREAD_LDOMINHERIT_NP
Threads created with this processor attribute inherit their processor binding and locality
domain binding attributes from the creating thread. Specifying
PTHREAD_LDOMINHERIT_NP
or PTHREAD_SPUINHERIT_NP cause both processor binding
and locality domain binding attributes to be inherited. The binding_type attribute is ignored.
Due to differences in data types in function definitions, this value should be cast to the type
(pthread_spu_t).
PTHREAD_LDOMFLOAT_NP
Threads created with this processor attribute are allowed to execute on any processor the sys-
tem chooses. No locality domain binding is maintained. Specifying
PTHREAD_LDOMFLOAT_NP
or PTHREAD_SPUFLOAT_NP cause both processor binding and
locality domain binding attributes to be cleared. The thread will be allowed to execute on any
processor in the system. The binding_type attribute is ignored. Due to differences in data
types in function definitions, this value should be cast to the type
(pthread_spu_t)
.
(pthread_ldom_t)locality_domain_id
Threads created with this processor attribute are bound to the locality domain specified in the
processor parameter. The thread will be allowed to execute on any processor within the
specified locality domain. Due to differences in data types in function definitions, this value
should be cast to the type
(pthread_spu_t)
.
The legal values for the binding_type attribute (if the processor attribute is not
PTHREAD_SPUINHERIT_NP
, PTHREAD_SPUFLOAT_NP, PTHREAD_LDOMINHERIT_NP
,or
PTHREAD_LDOMFLOAT_NP
) are:
PTHREAD_BIND_ADVISORY_NP
Threads created with this binding_type attribute have advisory processor binding to the pro-
cessor specified in the processor attribute. Refer to pthread_processor_bind_np(3T) for more
information on advisory binding.
PTHREAD_BIND_FORCED_NP
Threads created with this binding_type attribute have forced (or mandatory) processor binding
to the processor specified in the processor attribute. Refer to pthread_processor_bind_np(3T)
for more information on forced binding.
PTHREAD_BIND_LDOM_NP
Threads created with this binding_type are bound to the locality domain specified in the pro-
cessor attribute. Refer to pthread_ldom_bind_np(3T) for more information on locality domain
binding.
PTHREAD_BIND_NONE_NP
Threads created with this binding_type are not bound to any processor or locality domain. The
processor attribute is ignored. This is the default value of the binding_type attribute.
The default value of the processor attribute is
PTHREAD_SPUINHERIT_NP. The default value of the
binding_type attribute is PTHREAD_BIND_NONE_NP.
6 Hewlett-Packard Company 6 HP-UX 11i Version 3: September 2010