sched_yield - yield the processor
The sched_yield() function shall force the running thread to relinquish the processor until it again becomes the head of its thread list. It takes no arguments.
The sched_yield() function shall return 0 if it completes successfully; otherwise, it shall return a value of -1 and set errno to indicate the error.
No errors are defined.
None.
None.
None.
None.
The Base Definitions volume of IEEE Std 1003.1-2001, <sched.h>
First released in Issue 5. Included for alignment with the POSIX Realtime Extension and the POSIX Threads Extension.
The sched_yield() function is now marked as part of the Process Scheduling and Threads options.