Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sched_getscheduler(3)

sched_setscheduler(3)

sched_yield(3)  —  Subroutines

Digital

NAME

sched_yield − yield execution to another process (P1003.4/D10)

SYNOPSIS

#include <sched.h>

void sched_yield (
void) ;

PARAMETERS

void The sched_yield function takes no arguments. 

DESCRIPTION

The sched_yield function yields execution to another process. It is useful when an application running under the SCHED_FIFO scheduling policy needs to allow another process at the same priority to run.  The process that was interrupted by sched_yield goes to the end of the queue for its priority.  The sched_yield function takes no arguments, does not return any value, and never generates an error. 

If no other process is runnable at the priority of the caller, the caller continues to run. 

Note that processes with higher priority are allowed to preempt the running process, so the sched_yield function has no effect on the scheduling of higher- or lower-priority processes. 

No special privileges are needed to use the sched_yield function. 

RETURN VALUES

No values are returned. 

ERRORS

No diagnostics are generated. 

RELATED INFORMATION

sched_getscheduler(3), sched_setscheduler(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026