pthread_attr_setschedpolicy(3) Library Functions Manual pthread_attr_setschedpolicy, pthread_attr_getschedpolicy - / LIBRARY POSIX threads library (libpthread, -lpthread) #include int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy); int pthread_attr_getschedpolicy(const pthread_attr_t *restrict attr, int *restrict policy); pthread_attr_setschedpolicy() , attr, policy. , attr. policy: SCHED_FIFO, SCHED_RR SCHED_OTHER, , sched(7). pthread_attr_getschedpolicy() , attr, policy. , pthread_attr_setschedpolicy(), pthread_create(3), pthread_attr_setinheritsched(3) inherit-scheduler attr PTHREAD_EXPLICIT_SCHED. 0; . pthread_attr_setschedpolicy() : EINVAL policy. pthread_attr_setschedpolicy() POSIX.1 ENOTSUP (<< >>). attributes(7). +-------------------------------+----------------------------------------------------------+--------------------------+ | | | | +-------------------------------+----------------------------------------------------------+--------------------------+ |pthread_attr_setschedpolicy(), | | MT-Safe | |pthread_attr_getschedpolicy() | | | +-------------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. glibc 2.0. POSIX.1-2001. pthread_setschedparam(3). . pthread_attr_init(3), pthread_attr_setinheritsched(3), pthread_attr_setschedparam(3), pthread_create(3), pthread_setschedparam(3), pthread_setschedprio(3), pthreads(7), sched(7) Alexey, Azamat Hackimov , kogamatranslator49 , Kogan, Max Is , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . pthread_attr_setschedpolicy(3)