JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... (): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE 説明 nice () は inc の値を nice を呼んだプロセスの nice 値に加える (nice 値が大きい数値ほど低い優先度を表す)。 負の数を指定する、つま ... り、以前よりも優先度を上げるという指定ができるのは スーパーユーザーだけである。 nice 値の範囲については getpriority (2) で説明されている。 返り値 成功した場合、新しい nice 値が返る (但し、下記の「注意」を参照 ... 呼び出し元のプロセスが inc に負の数値を指定して優先度を上げようとしたが、 十分な権限を持っていなかった。 Linux では CAP_SYS_NICE ケーパビリティが必要である。 ( setrlimit (2) のリソース上限 RLIMIT_NICE に関する議論も参照のこと)。 準拠 SVr4, 4.3BSD, POS ... ... the setpriority () call. The process attribute dealt with by these system calls is the same attribute (also known as the "nice" value) that is dealt with by nice (2). which の値は PRIO_PROCESS , PRIO_PGRP , PRIO_USER , のどれか一つで、 who は which ... y () コールは指定したプロセス全ての優先度を指定した値に設定する。 Traditionally, only a privileged process could lower the nice value (i.e., set a higher priority). However, since Linux 2.6.12, an unprivileged process can decrease the nice value of a ... target process that has a suitable RLIMIT_NICE soft limit; see getrlimit (2) for details. 返り値 On success, getpriority () returns the calling thread's nice value, whic ... ... the setpriority () call. The process attribute dealt with by these system calls is the same attribute (also known as the "nice" value) that is dealt with by nice (2). which の値は PRIO_PROCESS , PRIO_PGRP , PRIO_USER , のどれか一つで、 who は which ... y () コールは指定したプロセス全ての優先度を指定した値に設定する。 Traditionally, only a privileged process could lower the nice value (i.e., set a higher priority). However, since Linux 2.6.12, an unprivileged process can decrease the nice value of a ... target process that has a suitable RLIMIT_NICE soft limit; see getrlimit (2) for details. 返り値 On success, getpriority () returns the calling thread's nice value, whic ... ... [--version] 説明 引数なしで実行すると、 nice は自身が継承したスケジューリング優先度を表示する。 それ以外の場合には、 nice はスケジューリング優先度を調整してから 与えら ... れた command を実行する。 adjustment が与えられなかった場合には、 command の優先度は 10 増加される。 nice によって調整できる優先度の範囲は -20 (優先度最高) から 19 (優先度最低) までである。負の adjustment を与えるには適切な特権 ... (通常はスーパーユーザー権限) が必要である。 ほとんどのシェルには同名の組み込みコマンドがあるので、 単に `nice' として実行すると、 ここで記述されたものとは異なった機能のものが実行されるだろう。 オプション -n adjustment , - adjustment ... ... る仕組みが規定されていない。 古い Linux カーネルではこれを変更する方法が提供されている (この方法に移植性はない)。 プロセスの nice 値を調整することで時間量を制御できる ( setpriority (2) 参照)。 負の nice 値 (すなわち、高い nice 値) を割り当てると時間量は ... 長くなり、 正の nice 値 (すなわち、低い nice 値) を割り当てると時間量は短くなる。 デフォルトの時間量は 0.1 秒である。 nice 値の変更が時間量にど ... ... 度 0 のリストから、このリストの中だけで 決定される「動的な」優先度 (dynamic priority) に基いて決定される。 動的な優先度は ( nice (2), setpriority (2), sched_setattr (2) により設定される) nice 値に基づいて決定されるもので、 単位時間毎に、スレッドが実行 ... _BATCH: バッチプロセスのスケジューリング (Linux 2.6.16 以降) SCHED_BATCH は静的優先度 0 でのみ使用できる。 このポリシーは (nice 値に基づく) 動的な優先度にしたがってスレッドの スケジューリングが行われるという点で、 SCHED_OTHER に似ている。 異なるのは、 ... 少し課し、その結果、このスレッドはスケジューリングの決定で 若干冷遇されるようになる。 このポリシーは、非対話的な処理だがその nice 値を下げたくない処理や、 (処理のタスク間で) 余計なタスクの置き換えの原因とある対話的な処理なしで 確定的な (deterministic) ... ... 作れないことが保証される (このようなメッセージであっても、 記録のためのオーバーヘッドでシステムメモリーを消費する)。 RLIMIT_NICE (Linux 2.6.12 以降, 下記の「バグ」の節も参照) This specifies a ceiling to which the process's nice value can be raised usi ... ng setpriority (2) or nice (2). The actual ceiling for the nice value is calculated as 20 - rlim_cur . The useful range for this limit is thus from 1 ... (corresponding to a nice value of 19) to 40 (corresponding to a nice value of -20). This unusual choice of range was necessary because negative num ... ... 作れないことが保証される (このようなメッセージであっても、 記録のためのオーバーヘッドでシステムメモリーを消費する)。 RLIMIT_NICE (Linux 2.6.12 以降, 下記の「バグ」の節も参照) This specifies a ceiling to which the process's nice value can be raised usi ... ng setpriority (2) or nice (2). The actual ceiling for the nice value is calculated as 20 - rlim_cur . The useful range for this limit is thus from 1 ... (corresponding to a nice value of 19) to 40 (corresponding to a nice value of -20). This unusual choice of range was necessary because negative num ... ... 作れないことが保証される (このようなメッセージであっても、 記録のためのオーバーヘッドでシステムメモリーを消費する)。 RLIMIT_NICE (Linux 2.6.12 以降, 下記の「バグ」の節も参照) This specifies a ceiling to which the process's nice value can be raised usi ... ng setpriority (2) or nice (2). The actual ceiling for the nice value is calculated as 20 - rlim_cur . The useful range for this limit is thus from 1 ... (corresponding to a nice value of 19) to 40 (corresponding to a nice value of -20). This unusual choice of range was necessary because negative num ... ... 作れないことが保証される (このようなメッセージであっても、 記録のためのオーバーヘッドでシステムメモリーを消費する)。 RLIMIT_NICE (Linux 2.6.12 以降, 下記の「バグ」の節も参照) This specifies a ceiling to which the process's nice value can be raised usi ... ng setpriority (2) or nice (2). The actual ceiling for the nice value is calculated as 20 - rlim_cur . The useful range for this limit is thus from 1 ... (corresponding to a nice value of 19) to 40 (corresponding to a nice value of -20). This unusual choice of range was necessary because negative num ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。