Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SCHED_YIELD(2)		      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 indi-
       cate the	error.

ERRORS
       On failure errno	will be	set to the corresponding value:

       [ENOSYS]		  The system is	not configured to support  this	 func-
			  tionality.

STANDARDS
       The  sched_yield()  system  call	 conforms  to  IEEE  Std  1003.1b-1993
       ("POSIX.1").

FreeBSD	13.2			March 12, 1998			SCHED_YIELD(2)

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS | STANDARDS

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=sched_yield&sektion=2&manpath=FreeBSD+14.0-RELEASE+and+Ports>

home | help