sched_yield - yield the processor
#include <sched.h>
int sched_yield(void);
sched_yield() causes the calling thread to relinquish the CPU. The thread is moved to the end of the queue for its static priority and a new thread gets to run.
On success, sched_yield() returns 0. On error, -1 is
returned, and errno
is set to indicate the error.
sched(7)