pthread_setschedprio(3T)pthread_setschedprio(3T)NAMEpthread_setschedprio() - sets scheduling priority of a thread
SYNOPSISPARAMETERS
thread The thread whose scheduling priority is to be set.
prio The new priority for the thread.
DESCRIPTION
The function sets the scheduling priority of thread to the value prio.
If the function fails, the scheduling priority of the target thread is
not changed.
RETURN VALUE
Upon successful completion, returns zero. Otherwise, an error number
is returned to indicate the error (the variable is not set).
ERRORS
If any of the following occur, the function returns the corresponding
error number:
The value of prio is invalid for the scheduling policy of the
specified thread.
The implementation does not allow the application to modify the
priority
to the value specified.
No thread could be found corresponding to
thread.
AUTHOR
is derived from the IEEE Std 1003.1-2001.
SEE ALSOrtsched(2), pthread_attr_setschedparam(3T), pthread_attr_setschedpol‐
icy(3T), pthread_attr_getschedparam(3T), pthread_attr_getschedpol‐
icy(3T), pthread_setschedparam(3T), pthread_getschedparam(3T).
STANDARDS CONFORMANCE
Pthread Library pthread_setschedprio(3T)