tail head cat sleep
QR code linking to this page

Manual Pages  — SCHED_YIELD

NAME

sched_yield – yield processor

CONTENTS

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-93 ("POSIX.1").

SCHED_YIELD (2) March 12, 1998

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

“ Like a classics radio station whose play list spans decades, Unix simultaneously exhibits its mixed and dated heritage. There's Clash-era graphics interfaces; Beatles-era two-letter command names; and systems programs (for example, ps) whose terse and obscure output was designed for slow teletypes; Bing Crosby-era command editing (# and @ are still the default line editing commands), and Scott Joplin-era core dumps. ”
— The Unix Haters' handbook