freebsd man page for sched_yield

Query: sched_yield

OS: freebsd

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SCHED_YIELD(2)						      BSD System Calls Manual						    SCHED_YIELD(2)

NAME
sched_yield -- yield processor
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sched.h> int sched_yield(void);
DESCRIPTION
The sched_yield() system call forces the running process to relinquish the processor until it again becomes the head of its process list. It takes no arguments.
RETURN VALUES
The sched_yield() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error.
ERRORS
On failure errno will be set to the corresponding value: [ENOSYS] The system is not configured to support this functionality.
STANDARDS
The sched_yield() system call conforms to IEEE Std 1003.1b-1993 (``POSIX.1'').
BSD
March 12, 1998 BSD
Related Man Pages
sched_yield(3c) - opensolaris
sched_yield(3p) - suse
sched_yield(3p) - x11r4
sched_yield(3p) - opendarwin
sched_yield(3p) - xfree86
Similar Topics in the Unix Linux Community
Problem building app
Pthread attr setting doesn't work before thread create?
Playing with the Linux Scheduler
libcvd install problem
NTP synchronised problem in our Centos 7.6 node