pthread_attr_setschedparam(3) Library Functions Manual pthread_attr_setschedparam, pthread_attr_getschedparam - / LIBRARY POSIX threads library (libpthread, -lpthread) #include int pthread_attr_setschedparam(pthread_attr_t *restrict attr, const struct sched_param *restrict param); int pthread_attr_getschedparam(const pthread_attr_t *restrict attr, struct sched_param *restrict param); pthread_attr_setschedparam() , attr, , param. , attr. pthread_attr_getschedparam() , attr, param. : struct sched_param { int sched_priority; /* */ }; , . sched(7). , pthread_attr_setschedparam(), pthread_create(3), pthread_attr_setinheritsched(3) inherit-scheduler attr PTHREAD_EXPLICIT_SCHED. 0; . pthread_attr_setschedparam() : EINVAL , param, attr. POSIX.1 ENOTSUP pthread_attr_setschedparam(). Linux ( , ). attributes(7). +------------------------------+----------------------------------------------------------+--------------------------+ | | | | +------------------------------+----------------------------------------------------------+--------------------------+ |pthread_attr_setschedparam(), | | MT-Safe | |pthread_attr_getschedparam() | | | +------------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. POSIX.1-2001. glibc 2.0. , Linux pthread_attr_setschedpolicy(3). pthread_setschedparam(3). . sched_get_priority_min(2), pthread_attr_init(3), pthread_attr_setinheritsched(3), pthread_attr_setschedpolicy(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_setschedparam(3)