pthread_setschedprio - set scheduling priority of a thread
#include <pthread.h>
int pthread_setschedprio(pthread_t thread, int prio);
The pthread_setschedprio() function sets the
scheduling priority of the thread thread
to the value specified
in prio
. (By contrast pthread_setschedparam(3)
changes both the scheduling policy and priority of a thread.)
On success, this function returns 0; on error, it returns a nonzero
error number. If pthread_setschedprio() fails, the
scheduling priority of thread
is not changed.
getrlimit(2), sched_get_priority_min(2), pthread_attr_init(3), pthread_attr_setinheritsched(3), pthread_attr_setschedparam(3), pthread_attr_setschedpolicy(3), pthread_create(3), pthread_self(3), pthread_setschedparam(3), pthreads(7), sched(7)