programing:linux-programing:pthreads-programing:sched-policy-priority
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| programing:linux-programing:pthreads-programing:sched-policy-priority [2022/07/09 23:05] – [テーブル] yoko | programing:linux-programing:pthreads-programing:sched-policy-priority [2022/07/09 23:43] (現在) – [macOSでの優先度範囲] yoko | ||
|---|---|---|---|
| 行 7: | 行 7: | ||
| - | ^ ポリシー | + | ^ ポリシー |
| - | | | + | | SCHED\_FIFO |
| + | | SCHED\_RR | ||
| + | | SCHED\_OTHER | ||
| 優先度 | 優先度 | ||
| ----- | ----- | ||
| + | SCHED\_FIFO と SCHED\_RR スレッドの優先レベルは 1 から 99 で指定することができ、__99 が最も高い__優先度になる。 | ||
| + | ### macOSでの優先度範囲 | ||
| + | macOSで指定できる優先度は 1〜99 ではなく、POSIX.1-2001 で要求される最低 32 種類のレベル指定となっている模様。(macOS Monterey 12.4で確認) | ||
| + | なので、設定きできる優先度の範囲は、 `sched_get_priority_min` と `sched_get_priority_max` を使って調べてから利用する。 | ||
| + | |||
| + | |||
| + | |||
| + | 参考 | ||
| + | ---- | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
programing/linux-programing/pthreads-programing/sched-policy-priority.1657407944.txt.gz · 最終更新: by yoko
