HP-UX Reference (11i v2 03/08) - 3 Library Functions N-Z (vol 7)
p
pthread_mutexattr_getspin_np(3T) pthread_mutexattr_getspin_np(3T)
(Pthread Library)
[EINVAL]
pthread_mutex_disable_handoff_np()
was called after the process became
multithreaded.
WARNINGS
The settings of the spin and yield attributes can, as well as improve application performance, easily lead
to degraded performance. The CPU consumption of the application may be increased. Settings which
work well for a small number of threads may do poorly for larger numbers of threads. The optimal set-
tings will vary depending upon hardware and operating system configuration. Minor changes in the
application itself may require retuning of these attributes.
The programmer must analyze performance carefully to obtain an understanding of mutex contention
within the application. Then, experiment with different attribute values, evaluating how mutex conten-
tion is affected, response time, and CPU consumption.
AUTHOR
pthread_mutexattr_getspin_np()
, pthread_mutexattr_setspin_np()
,
pthread_mutex_getyieldfreq_np()
, pthread_mutex_setyieldfreq_np()
,
pthread_mutexattr_disable_handoff_np()
, and
pthread_mutex_disable_handoff_np()
were developed by HP.
SEE ALSO
pthread_create(3T), pthread_mutex_init(3T), pthread_mutexattr_init(3T), rtsched(2)
STANDARDS CONFORMANCE
pthread_mutexattr_setspin_np()
: None.
pthread_mutexattr_getspin_np()
: None.
pthread_mutex_setyieldfreq_np()
: None.
pthread_mutex_getyieldfreq_np()
: None.
pthread_mutexattr_disable_handoff_np()
: None.
pthread_mutex_disable_handoff_np()
: None.
HP-UX 11i Version 2: August 2003 − 3 − Hewlett-Packard Company Section 3−−787