sched_yield(3R) manual page
Table of Contents
sched_yield - yield processor
cc [ flag ... ] file ... -lposix4
[ library ... ]
#include <sched.h>
int sched_yield(void);
MT-Safe
sched_yield() forces the running process to relinquish the processor until
the process again becomes the head of its process list.
If
successful, sched_yield() returns 0, otherwise, it returns -1, and sets
errno to indicate the error condition.
- ENOSYS
- sched_yield() is not
supported by this implementation.
In Solaris 2.5, these functions always
return -1 and set errno
to ENOSYS,
because this release does not support
the Priority Scheduling option. It is our intention to provide support for
these interfaces in future releases.
Table of Contents