pthread_yield - yield the processor
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <pthread.h>
[[deprecated]] int pthread_yield(void);
Note: This function is deprecated; see below.
pthread_yield() 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 sched_yield(2)
On success, pthread_yield() returns 0; on error, it returns an error number.
sched_yield(2), pthreads(7), sched(7)