NAME
sched_yield —
yield the processor
SYNOPSIS
int sched_yield(void);
DESCRIPTION
The sched_yield () function shall force
the running thread to relinquish the processor until it again becomes the
head of its thread list. It takes no arguments.
RETURN VALUE
The sched_yield () function shall return 0
if it completes successfully; otherwise, it shall return a value of -1 and
set
errno to
indicate the error.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
The Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <sched.h>
CHANGE HISTORY
First released in Issue 5. Included for alignment with the POSIX Realtime Extension and the POSIX Threads Extension.
Issue 6
The sched_yield () function is now marked
as part of the Process Scheduling and Threads options.
End of informative text. footer end