mirror of https://github.com/mkerrisk/man-pages
sched_yield.2: minor: relocate some text to NOTES
Relocate some text from DESCRIPTION to NOTES. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
15eeae41d2
commit
7559496c14
|
@ -27,7 +27,7 @@
|
|||
.\" 1996-04-10 Markus Kuhn <mskuhn@cip.informatik.uni-erlangen.de>
|
||||
.\" revision
|
||||
.\"
|
||||
.TH SCHED_YIELD 2 2008-10-17 "Linux" "Linux Programmer's Manual"
|
||||
.TH SCHED_YIELD 2 2008-10-18 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
sched_yield \- yield the processor
|
||||
.SH SYNOPSIS
|
||||
|
@ -39,17 +39,6 @@ sched_yield \- yield the processor
|
|||
causes the calling thread to relinquish the CPU.
|
||||
The thread is moved to the end of the queue for its static
|
||||
priority and a new thread gets to run.
|
||||
|
||||
Note: If the calling thread is the only thread in the highest
|
||||
priority list at that time, it will continue to run after a
|
||||
call to
|
||||
.BR sched_yield ().
|
||||
|
||||
POSIX systems on which
|
||||
.BR sched_yield ()
|
||||
is available define
|
||||
.B _POSIX_PRIORITY_SCHEDULING
|
||||
in \fI<unistd.h>\fP.
|
||||
.SH "RETURN VALUE"
|
||||
On success,
|
||||
.BR sched_yield ()
|
||||
|
@ -63,6 +52,17 @@ In the Linux implementation,
|
|||
always succeeds.
|
||||
.SH "CONFORMING TO"
|
||||
POSIX.1-2001.
|
||||
.SH NOTES
|
||||
If the calling thread is the only thread in the highest
|
||||
priority list at that time,
|
||||
it will continue to run after a call to
|
||||
.BR sched_yield ().
|
||||
|
||||
POSIX systems on which
|
||||
.BR sched_yield ()
|
||||
is available define
|
||||
.B _POSIX_PRIORITY_SCHEDULING
|
||||
in \fI<unistd.h>\fP.
|
||||
.SH "SEE ALSO"
|
||||
.BR sched_setscheduler (2)
|
||||
for a description of Linux scheduling.
|
||||
|
|
Loading…
Reference in New Issue