新石器Wiki

近年はシリコン(石)から進化した便利なもので溢れる時代。そんな気になった事や試した事など記す。

ユーザ用ツール

サイト用ツール


programing:linux-programing:pthreads-programing:sched-policy-priority


差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
programing:linux-programing:pthreads-programing:sched-policy-priority [2022/07/10 08:11] – [テーブル] yokoprograming:linux-programing:pthreads-programing:sched-policy-priority [2022/07/10 08:43] (現在) – [macOSでの優先度範囲] yoko
行 15: 行 15:
 優先度 優先度
 ----- -----
 +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://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuration_suggestions-tuning_scheduling_policy|スケジューリングポリシーの調整]]
 +  * [[https://manpages.ubuntu.com/manpages/jammy/ja/man7/sched.7.html|sched - スケジューリング API の概要]]
  
  
programing/linux-programing/pthreads-programing/sched-policy-priority.1657408300.txt.gz · 最終更新: 2022/07/10 08:11 by yoko