sched_yield()

force running thread to yield to another thread 

Function


SYNOPSIS

#include <sched.h>

int sched_yield(void);


DESCRIPTION

The sched_yield() function forces the running thread to relinquish the processor to allow another thread to run.


PARAMETERS

None.


RETURN VALUES

The sched_yield() function always returns 0.


CONFORMANCE

POSIX.1 (1996).


MULTITHREAD SAFETY LEVEL

MT-safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


PTC MKS Toolkit 10.3 Documentation Build 39.