The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

NAME

sched_yield - yield processor

SYNOPSIS

#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 VALUE

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

ERRORS

No errors are defined.

EXAMPLES

None.

APPLICATION USAGE

None.

FUTURE DIRECTIONS

None.

SEE ALSO

<sched.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]