pthread_yield
—
yield control of the current thread
POSIX Threads Library (libpthread,
-lpthread)
#include
<pthread.h>
void
pthread_yield
(void);
The
pthread_yield
()
forces the running thread to relinquish the processor until it again becomes
the head of its thread list.
The pthread_yield
() is a non-portable (but
quite common) extension to IEEE Std 1003.1-2001
(“POSIX.1”).