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).
This call is nonstandard, but present on several other systems.
Use the standardized
On Linux, this function is implemented as a call to
This page is part of release 3.54 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 22:05:47 GMT, January 22, 2018