sched_yield(2freebsd)

sched_yield2freebsd

Yield processor

Usage

#include <sched.h>

int

sched_yield(void);

Library

Standard C Library (libc, -lc)

Overview

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.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

Standards

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

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.