pthread_setschedprio
(3)set scheduling priority of a thread
#include <pthread.h> int pthread_setschedprio(pthread_t thread, int prio);
LIBRARY
DESCRIPTION
RETURN VALUE
ERRORS
- EINVAL
- prio is not valid for the scheduling policy of the specified thread.
- EPERM
- The caller does not have appropriate privileges to set the specified priority.
- ESRCH
- No thread with the ID thread could be found.
POSIX.1 also documents an ENOTSUP ("attempt was made to set the priority to an unsupported value") error for pthread_setschedparam(3).