Manual Page Result
0
Command: sched_yield | Section: 2 | Source: OpenBSD | File: sched_yield.2
SCHED_YIELD(2) FreeBSD System Calls Manual SCHED_YIELD(2)
NAME
sched_yield - yield the processor
SYNOPSIS
#include <sched.h>
int
sched_yield(void);
DESCRIPTION
The sched_yield() function makes the current thread yield the processor
and be put at the end of its run queue without altering its priority.
RETURN VALUES
Upon successful completion, the value 0 is returned; otherwise the
value -1 is returned and the global variable errno is set to indicate the
error.
STANDARDS
The sched_yield() function conforms to IEEE Std 1003.1-2008 ("POSIX.1").
HISTORY
The sched_yield() system call appeared in OpenBSD 4.2.
CAVEATS
The effect of sched_yield() is only precisely defined for real-time
scheduling classes, none of which are currently supported by OpenBSD.
FreeBSD 14.1-RELEASE-p8 November 14, 2014 FreeBSD 14.1-RELEASE-p8