sched_yield(2) DG/UX 5.4R3.00 sched_yield(2)
NAME
sched_yield - give up the job processor
SYNOPSIS
#include <sched.h>
int schedyield ()
DESCRIPTION
A process that calls schedyield(2) voluntarily gives up the JP to
an eligible process of equal or better priority. The process yielding
the JP is added to the eligible list behind processes of equal or
better priority. If no eligible process has a scheduling priority
higher than or equal to that of the calling process, the call has no
effect.
Note
* This routine is based on POSIX realtime extension document P1003.4
draft 14. It is therefore subject to change.
* Compilation of a source file using this routine requires that
feature macro _POSIX4_DRAFT_SOURCE be defined. This feature macro
is not enabled by any other feature macro, nor does it enable any
other feature macro.
* The compiled routine must be linked to library librte.a.
RETURN VALUE
The schedyield call returns 0 indicating success. It always
succeeds.
SEE ALSO
schedsetparam(2), schedgetparam(2), schedsetscheduler(2),
schedgetscheduler(2), schedgetprioritymax(2),
schedgetprioritymin(2), schedrrgetinterval(2).
Licensed material--property of copyright holder(s) 1