pthread_yield(3T)pthread_yield(3T)NAMEpthread_yield() - notify the scheduler that the current thread is will‐
ing to relinquish the use of its processor
SYNOPSISPARAMETERS
None.
DESCRIPTION
The function notifies the scheduler that the current thread is willing
to relinquish the use of its processor to other threads of equivalent
or higher priority. If the run queue is empty or if no other threads
of equivalent or greater scheduling priority are ready to execute when
the function is called, then the calling thread is immediately resched‐
uled.
If the calling thread has the system contention scope then calling this
function notifies the kernel scheduler.
If the calling thread has the process contention scope then calling
this function notifies the user space scheduler.
RETURN VALUE
Upon successful completion, returns zero.
ERRORS
None.
AUTHOR
was developed by HP.
SEE ALSOrtsched(2), rtprio(2), pthread_attr_setscope(3T), pthread_setsched‐
param(3T).
Pthread Library pthread_yield(3T)