Skip Navigation Links | |
Exit Print View | |
man pages section 3: Realtime Library Functions Oracle Solaris 10 1/13 Information Library |
- yield processor
cc [ flag... ] file... -lrt [ library... ] #include <sched.h> int sched_yield(void);
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.
No errors are defined.
See attributes(5) for descriptions of the following attributes:
|