SCHED_YIELD(3C) Standard C Library Functions SCHED_YIELD(3C)

NAME


sched_yield - yield processor

SYNOPSIS


#include <sched.h>

int sched_yield(void);


DESCRIPTION


The sched_yield() function forces the running thread to relinquish
the processor until the process again becomes the head of its process
list. It takes no arguments.

RETURN VALUES


If successful, sched_yield() returns 0, otherwise, it returns -1, and
sets errno to indicate the error condition.

ERRORS


No errors are defined.

ATTRIBUTES


See attributes(7) for descriptions of the following attributes:


+--------------------+-------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-------------------+
|Interface Stability | Committed |
+--------------------+-------------------+
|MT-Level | MT-Safe |
+--------------------+-------------------+
|Standard | See standards(7). |
+--------------------+-------------------+

SEE ALSO


sched.h(3HEAD), librt(3LIB), attributes(7), standards(7)

February 5, 2008 SCHED_YIELD(3C)

tribblix@gmail.com :: GitHub :: Privacy