OSDN Git Service

Update drafts for LDP 3.67
[linuxjm/LDP_man-pages.git] / draft / man2 / sched_setscheduler.2
index ccc7d5a..728cdf5 100644 (file)
@@ -47,7 +47,7 @@
 .\"
 .TH SCHED_SETSCHEDULER 2 2014\-05\-21 Linux "Linux Programmer's Manual"
 .SH 名前
-sched_setscheduler, sched_getscheduler \- ã\82¹ã\82±ã\82¸ã\83¥ã\83¼ã\83ªã\83³ã\82°ã\83»ã\83\9dã\83ªã\82·ã\83¼ã\81¨ã\83\91ã\83©ã\83¡ã\83¼ã\82¿ã\82\92設å®\9a\8f\96å¾\97ã\81\99ã\82\8b
+sched_setscheduler, sched_getscheduler \- スケジューリングポリシーとパラメータを設定/取得する
 .SH 書式
 .nf
 \fB#include <sched.h>\fP
@@ -60,10 +60,9 @@ sched_setscheduler, sched_getscheduler \- スケジューリング・ポリシ
 .sp
 .fi
 .SH 説明
-The \fBsched_setscheduler\fP()  system call sets both the scheduling policy and
-parameters for the thread whose ID is specified in \fIpid\fP.  If \fIpid\fP equals
-zero, the scheduling policy and parameters of the calling thread will be
-set.
+\fBsched_setscheduler\fP() システムコールは、 \fIpid\fP で指定された ID
+を持つスレッドのスケジューリングポリシーとスケジューリングパラメーターの両方を設定する。 \fIpid\fP が 0
+の場合、呼び出したスレッド自身のスケジューリングポリシーとスケジューリングパラメーターが設定される。
 
 The scheduling parameters are specified in the \fIparam\fP argument, which is a
 pointer to a structure of the following form:
@@ -88,21 +87,19 @@ scheduling policies as values that may be specified in \fIpolicy\fP:
 \fBSCHED_OTHER\fP
 .\" In the 2.6 kernel sources, SCHED_OTHER is actually called
 .\" SCHED_NORMAL.
-æ¨\99æº\96ã\81®ã\80\81ã\83©ã\82¦ã\83³ã\83\89ã\83­ã\83\93ã\83³ã\81«ã\82\88ã\82\8bæ\99\82å\88\86å\89²å\9e\8bã\81®ã\82¹ã\82±ã\82¸ã\83¥ã\83¼ã\83ªã\83³ã\82°ã\83»ã\83\9dã\83ªã\82·ã\83¼ã\80\82
+標準の、ラウンドロビンによる時分割型のスケジューリングポリシー。
 .TP 
 \fBSCHED_BATCH\fP
 「バッチ」形式でのプロセスの実行用。
 .TP 
 \fBSCHED_IDLE\fP
\80\8cé\9d\9e常ã\81«ã\80\8dä½\8eã\81\84å\84ªå\85\88度ã\81§å\8b\95ä½\9cã\81\99ã\82\8bã\83\90ã\83\83ã\82¯ã\82°ã\83©ã\82¦ã\83³ã\83\89ã\83»ã\82¸ã\83§ã\83\96ç\94¨ã\80\82
+「非常に」低い優先度で動作するバックグラウンドジョブ用。
 .PP
 For each of the above policies, \fIparam\->sched_priority\fP must be 0.
 
-Various "real\-time" policies are also supported, for special time\-critical
-applications that need precise control over the way in which runnable
-threads are selected for execution.  For the rules governing when a process
-may use these policies, see \fBsched\fP(7).  The real\-time policies that may be
-specified in \fIpolicy\fP are:
+どの実行可能スレッドを選択するかについて、より正確な制御を必要とする 時間の制約が厳しい特別なアプリケーション用として、
+いろいろな「リアルタイム」ポリシーもサポートされている。 プロセスがこれらのポリシーをいつ使用できるかを決めるルールについては、\fBsched\fP(7)
+を参照。 \fIpolicy\fP には以下のリアルタイムポリシーを指定できる。
 .TP  14
 \fBSCHED_FIFO\fP
 ファーストイン、ファーストアウト型のポリシー。
@@ -116,21 +113,19 @@ by calling \fBsched_get_priority_min\fP(2)  and \fBsched_get_priority_min\fP(2)
 with the specified \fIpolicy\fP.  On Linux, these system calls return,
 respectively, 1 and 99.
 
-Since Linux 2.6.32, the \fBSCHED_RESET_ON_FORK\fP flag can be ORed in \fIpolicy\fP
-when calling \fBsched_setscheduler\fP().  As a result of including this flag,
-children created by \fBfork\fP(2)  do not inherit privileged scheduling
-policies.  See \fBsched\fP(7)  for details.
+Linux 2.6.32 以降では、 \fBsched_setscheduler\fP() を呼び出す際に \fIpolicy\fP に
+\fBSCHED_RESET_ON_FORK\fP フラグを OR で指定できる。このフラグが指定されると、 \fBfork\fP(2)
+で作成された子プロセスは特権が必要なスケジューリングポリシーを継承しない。 詳細は \fBsched\fP(7) を参照。
 
-\fBsched_getscheduler\fP()  returns the current scheduling policy of the thread
-identified by \fIpid\fP.  If \fIpid\fP equals zero, the policy of the calling
-thread will be retrieved.
+\fBsched_getscheduler\fP()  は \fIpid\fP で識別されるスレッドの現在のスケジューリングポリシーを返す。\fIpid\fP が 0
+ならば、呼び出した スレッド自身のスケジューリングポリシーが返される。
 .SH 返り値
 成功した場合、 \fBsched_setscheduler\fP()  は 0 を返す。 成功した場合、 \fBsched_getscheduler\fP()
 は現在のそのスレッドのポリシー (非負の整数) を返す。 エラーの場合、 どちらのコールも \-1 を返し、 \fIerrno\fP が適切に設定される。
 .SH エラー
 .TP 
 \fBEINVAL\fP
-Invalid arguments: \fIpid\fP is negative or \fIparam\fP is NULL.
+無効な引き数: \fIpid\fP が負である、または \fIparam\fP が NULL である。
 .TP 
 \fBEINVAL\fP
 (\fBsched_setscheduler\fP()) \fIpolicy\fP が認識できるポリシーではない。
@@ -164,7 +159,7 @@ Linux では、 スケジューリングポリシーとスケジューリング
 システムコールの代わりに \fBpthread_setschedparam\fP(3), \fBpthread_getschedparam\fP(3), and
 \fBpthread_setschedprio\fP(3) を使用すること)。
 .SH バグ
-POSIX ã\81§ã\81¯ã\80\81æ\88\90å\8a\9fæ\99\82ã\81« \fBsched_setscheduler\fP()  ã\81¯ç\9b´å\89\8dã\81®ã\82¹ã\82±ã\82¸ã\83¥ã\83¼ã\83ªã\83³ã\82°ã\83»ã\83\9dã\83ªã\82·ã\83¼ã\82\92è¿\94ã\81\99ã\81¹ã\81\8dã\81¨ã\81\95ã\82\8cã\81¦ã\81\84ã\82\8bã\80\82 Linux ã\81®
+POSIX では、成功時に \fBsched_setscheduler\fP()  は直前のスケジューリングポリシーを返すべきとされている。 Linux の
 \fBsched_setscheduler\fP()  はこの要求仕様に準拠しておらず、 成功時には常に 0 を返す。
 .SH 関連項目
 .ad l