sched_yield(3R)
NAME
sched_yield − yield processor
SYNOPSIS
cc [ flag ... ] file ... −lposix4 [ library ... ]
#include <sched.h>
int sched_yield(void);
MT-LEVEL
MT-Safe
DESCRIPTION
sched_yield() forces the running process to relinquish the processor until the process again becomes the head of its process list.
RETURN VALUES
If successful, sched_yield() returns 0, otherwise, it returns -1, and sets errno to indicate the error condition.
ERRORS
ENOSYS sched_yield() is not supported by this implementation.
BUGS
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.
SunOS 5.5.1 — Last change: 16 Aug 1993