Section: Linux Programmer's Manual (3)
Return to Main Contents
pthread_yield - yield the processor
#define _GNU_SOURCE /* See feature_test_macros(7) */
Compile and link with -pthread.
causes the calling thread to relinquish the CPU.
The thread is placed at the end of the run queue for its static
priority and another thread is scheduled to run.
For further details, see
on error, it returns an error number.
On Linux, this call always succeeds
(but portable and future-proof applications should nevertheless
handle a possible error return).
For an explanation of the terms used in this section, see
This call is nonstandard, but present on several other systems.
Use the standardized
On Linux, this function is implemented as a call to
is intended for use with real-time scheduling policies (i.e.,
with nondeterministic scheduling policies such as
is unspecified and very likely means your application design is broken.
This page is part of release 4.15 of the Linux
A description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 08:42:11 GMT, September 21, 2018