[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 2

sched_yield Subroutine

Purpose

Yield processor.

Library

Standard Library (libc.a)

Syntax

#include <sched.h>

int sched_yield (void) ;

Description

The sched_yield function forces the running thread to relinquish the processor until it again becomes the head of its thread list. It takes no arguments.

Return Values

The sched_yield function returns 0 if it completes successfully, or it returns a value of -1 and sets errno to indicate the error.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]