Yields the processor to processes with higher priorities.
void yield (void);
The yield subroutine forces the current running process or thread to relinquish use of the processor. If the run queue is empty when the yield subroutine is called, the calling process or kernel thread is immediately rescheduled. If the calling process has multiple threads, only the calling thread is affected. The process or thread resumes execution after all threads of equal or greater priority are scheduled to run.
This subroutine is part of Base Operating System (BOS) Runtime.
The getpriority, setpriority, or nice subroutine, setpri (setpri Subroutine) subroutine.