優先順位は、スケジューラーのパラメーターの 1 つです。
次の API を使用すると、パラメーターをダイナミックに変更できます。
int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param)
また、次のAPI を使用すると、パラメーターを取得できます。
int pthread_attr_getschedparam(pthread_attr_t* attr, struct sched_param* schedpar)