Content-type: text/html
cc [ flag... ] file... -lrt [ library... ] #include <sched.h>
The sched_yield() function forces the running thread to relinquish the processor until the process again becomes the head of its process list. It takes no arguments.
If successful, sched_yield() returns 0, otherwise, it returns -1, and sets errno to indicate the error condition.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Standard |
MT-Level | MT-Safe |
librt(3LIB), sched.h(3HEAD), attributes(5)