pthread_attr_setscope(3) Library Functions Manual pthread_attr_setscope(3) pthread_attr_setscope, pthread_attr_getscope - / POSIX threads library (libpthread, -lpthread) #include int pthread_attr_setscope(pthread_attr_t *attr, int scope); int pthread_attr_getscope(const pthread_attr_t *restrict attr, int *restrict scope); pthread_attr_setscope() (contention scope) , attr, scope. , ( ). POSIX.1 scope: PTHREAD_SCOPE_SYSTEM , ( ). PTHREAD_SCOPE_SYSTEM . PTHREAD_SCOPE_PROCESS , , PTHREAD_SCOPE_PROCESS. PTHREAD_SCOPE_PROCESS . POSIX.1 , PTHREAD_SCOPE_SYSTEM. POSIX.1 , , . Linux PTHREAD_SCOPE_SYSTEM PTHREAD_SCOPE_PROCESS. , , , pthread_attr_setscope(), pthread_create(3), pthread_attr_setinheritsched(3) inherit-scheduler attr PTHREAD_EXPLICIT_SCHED. pthread_attr_getscope() , attr, scope. 0; . pthread_attr_setscope() : EINVAL scope. ENOTSUP scope PTHREAD_SCOPE_PROCESS, Linux. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |pthread_attr_setscope(), | | MT-Safe | |pthread_attr_getscope() | | | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. POSIX.1-2001. PTHREAD_SCOPE_SYSTEM , . Linux LinuxThreads NPTL, 1:1. POSIX.1 , . pthread_attr_init(3), pthread_attr_setaffinity_np(3), pthread_attr_setinheritsched(3), pthread_attr_setschedparam(3), pthread_attr_setschedpolicy(3), pthread_create(3), pthreads(7) () Alexey, Azamat Hackimov , kogamatranslator49 , Darima Kogan , Max Is , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux man-pages 6.12 23 2024 . pthread_attr_setscope(3)