pthread_attr_setscope(3) Library Functions Manual pthread_attr_setscope(3) pthread_attr_setscope, pthread_attr_getscope - / POSIX (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() 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 . PTHREAD_SCOPE_SYSTEM PTHREAD_SCOPE_PROCESS. pthread_attr_setscope() pthread_create(3) pthread_attr_setinheritsched(3) attr PTHREAD_EXPLICIT_SCHED. pthread_attr_getscope() attr scope. 0 . pthread_attr_setscope() : EINVAL scope. ENOTSUP scope PTHREAD_SCOPE_PROCESS . attributes(7). +------------+------------------------------------+--------------------+ || | | +------------+------------------------------------+--------------------+ |pthread_attr_setscope(),| | MT-Safe | |pthread_attr_getscope()| | | +------------+------------------------------------+--------------------+ POSIX.1-2008. POSIX.1-2001. PTHREAD_SCOPE_SYSTEM . 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) 3 . . : . 6.18 17 2025 pthread_attr_setscope(3)