pthread_yield(3T) pthread_yield(3T)
NAME
pthread_yield() - notify the scheduler that the current thread is willing to relinquish the use of its processor
SYNOPSIS
PARAMETERS
None.
DESCRIPTION
The function notifies the scheduler that the current thread is willing to relinquish the use of its processor to other threads of equiva-
lent or higher priority. If the run queue is empty or if no other threads of equivalent or greater scheduling priority are ready to exe-
cute when the function is called, then the calling thread is immediately rescheduled.
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 ALSO
rtsched(2), rtprio(2), pthread_attr_setscope(3T), pthread_setschedparam(3T).
Pthread Library pthread_yield(3T)