SCHED_YIELD(3) Library Functions Manual SCHED_YIELD(3)

sched_yieldyield the processor


#include <sched.h>

int sched_yield(void);

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.

The sched_yield () function shall return 0 if it completes successfully; otherwise, it shall return a value of -1 and set to indicate the error.

No errors are defined.

None.

None.

None.

None.

The Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <sched.h>

First released in Issue 5. Included for alignment with the POSIX Realtime Extension and the POSIX Threads Extension.

The sched_yield () function is now marked as part of the Process Scheduling and Threads options.

footer end

December 6, 2001 posix.fail