установить / получить политику планирования и параметры потока (set/get scheduling policy and parameters of a thread)
Синопсис (Synopsis)
#include <pthread.h>
int pthread_setschedparam(pthread_t thread, int policy,
const struct sched_param *param);
int pthread_getschedparam(pthread_t thread, int *restrict policy,
struct sched_param *restrict param);
Compile and link with -pthread.