スレッドの現在の優先順位を取得します。
Public ReadOnly Property CurrentPriority As Integer
[C#]
public int CurrentPriority {get;}
[C++]
public: __property int get_CurrentPriority();
[JScript]
public function get CurrentPriority() : int;
プロパティ値
オペレーティング システムがスレッドをスケジュールする方法によっては、スレッドの現在の優先順位が基本優先順位と異なることがあります。アクティブなスレッドの優先順位を一時的に上げることもできます。
解説
スレッドの現在の優先順位は、基本優先順位と異なることがあります。たとえば、経過時間またはその他の要因に基づき、プロセスを他のプロセスよりも先にプロセッサがアクセスする必要があると判断された場合、オペレーティング システムが CurrentPriority プロパティを変更することがあります。また、プロセスが待機状態から抜けるたびに、一時的にスレッドの優先順位を上げるように、 PriorityBoostEnabled プロパティを設定できます。プロセスが待機状態に戻ると、優先順位はリセットされます。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
ProcessThread クラス | ProcessThread メンバ | System.Diagnostics 名前空間 | BasePriority | PriorityBoostEnabled