[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    sched_yield(3R) manual page Table of Contents

Name

sched_yield - yield processor

Synopsis

cc [ flag ... ] file ... -lposix4 [ library ... ]

#include <sched.h>

int sched_yield(void);

MT-Level

MT-Safe

Description

sched_yield() forces the running process to relinquish the processor until the process again becomes the head of its process list.

Return Values

If successful, sched_yield() returns 0, otherwise, it returns -1, and sets errno to indicate the error condition.

Errors

ENOSYS
sched_yield() is not supported by this implementation.

Bugs

In Solaris 2.5, these functions always return -1 and set errno to ENOSYS, because this release does not support the Priority Scheduling option. It is our intention to provide support for these interfaces in future releases.


Table of Contents