sched_yield | |
Prototype: |
#include <sched.h> int sched_yield(void); |
General Description: | Relinquish control of the CPU without blocking. This routine tells the scheduler that the currently running task wants to give up the remains of its current timeslice. The call returns on the next timeslice. |
Return Value: | Zero if all goes okay and control is transferred; -1, otherwise. |
Parameters | |
Possible Errors | |
Examples | |
#include <sched.h> ... sched_yield(); |