Next: Joining Threads, Previous: Initial Thread Signal Mask, Up: Non-POSIX Extensions [Contents][Index]
Processes and threads normally run on any available CPU. However, they can be given an affinity to one or more CPUs, which limits them to the CPU set specified.
Sets the CPU affinity in attr. The CPU affinity controls which CPUs a thread may execute on. See CPU Affinity. This documentation is a stub. For additional information on this function, consult the manual page pthread_attr_setaffinity_np(3) See Linux Kernel.
Gets the CPU affinity settings from attr. This documentation is a stub. For additional information on this function, consult the manual page pthread_attr_getaffinity_np(3) See Linux Kernel.
Sets the CPU affinity for thread th. The CPU affinity controls which CPUs a thread may execute on. See CPU Affinity. This documentation is a stub. For additional information on this function, consult the manual page pthread_setaffinity_np(3) See Linux Kernel.
Gets the CPU affinity for thread th. The CPU affinity controls which CPUs a thread may execute on. See CPU Affinity. This documentation is a stub. For additional information on this function, consult the manual page pthread_getaffinity_np(3) See Linux Kernel.