Penguin
Blame: sched_yield(2)
EditPageHistoryDiffInfoLikePages
Annotated edit history of sched_yield(2) version 6, including all changes. View license author blame.
Rev Author # Line
1 perry 1 !!NAME
2
3
4 sched_yield - yield the processor
5 !!SYNOPSIS
5 PerryLorier 6 __#include <sched.h>__
1 perry 7
5 PerryLorier 8 __int sched_yield(void);__
1 perry 9 !!DESCRIPTION
5 PerryLorier 10 A process can relinquish the processor voluntarily without blocking by calling sched_yield(2). The process will then be moved to the end of the queue for its static priority and a new process gets to run.
1 perry 11
5 PerryLorier 12 Note: If the current process is the only process in the highest priority list at that time, this process will continue to run after a call to sched_yield(2).
1 perry 13
6 PerryLorier 14 POSIX systems on which sched_yield(2) is available define ''_POSIX_PRIORITY_SCHEDULING'' in <unistd.h>''
1 perry 15
16 !!RETURN VALUE
5 PerryLorier 17 On success, __sched_yield__ returns 0. On error, -1 is returned, and ''errno'' is set appropriately.
1 perry 18
19 !!CONFORMING TO
5 PerryLorier 20 POSIX.1b (formerly POSIX.4)
1 perry 21
22 !!SEE ALSO
5 PerryLorier 23 sched_setscheduler(2) for a description of Linux scheduling.
1 perry 24
5 PerryLorier 25 ''Programming for the real world - POSIX.4'' by Bill O. Gallmeister, O'Reilly'' IEEE Std 1003.1b-1993'' (POSIX.1b standard)'' ISO/IEC 9945-1:1996''
1 perry 26 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 4 times)