SCHED_YIELD(2) |
FreeBSD System Calls Manual |
SCHED_YIELD(2) |
名称
sched_yield —
プロセッサを放棄する
ライブラリ
Standard C Library (libc, -lc)
書式
#include < sched.h>
int
sched_yield( void);
解説
sched_yield()
sched_yield() システムコールは、実行しているプロセスを再びプロセスリストのヘッドになるまで強制的にプロセッサを放棄します。引数を取りません。
戻り値
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.
エラー
失敗すれば、
errno は、対応する値に設定されます:
-
[
ENOSYS]
-
システムが、この機能をサポートするように設定されていません。
規格
sched_yield() システムコールは、 IEEE Std 1003.1b-1993 (“POSIX.1b”) に適合しています。