sched_yield(3R)
NAME
sched_yield − yield processor
SYNOPSIS
cc [ flag ... ] file ... −lposix4 [ library ... ]
#include <sched.h>
int sched_yield(void);
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.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| MT-Level | MT-Safe |
SEE ALSO
SunOS 5.6 — Last change: 30 Dec 1996