[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Base Operating System and Extensions Technical Reference, Volume 2

yield Subroutine

Purpose

Yields the processor to processes with higher priorities.

Library

Standard C library (libc.a)

Syntax

void yield (void);

Description

The yield subroutine forces the current running process or thread to relinquish use of the processor. If the run queue is empty when the yield subroutine is called, the calling process or kernel thread is immediately rescheduled. If the calling process has multiple threads, only the calling thread is affected. The process or thread resumes execution after all threads of equal or greater priority are scheduled to run.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

The getpriority, setpriority, or nice subroutine, setpri subroutine.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]