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).
Multithreading (see pthreads(7))
function is thread-safe.
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.74 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
- Multithreading (see pthreads(7))
- CONFORMING TO
- SEE ALSO