Type Method 型メソッド

setThreadPriority:

Sets the current thread’s priority. 現在のスレッドの優先度を設定します。

Declaration 宣言

+ (BOOL)setThreadPriority:(double)p;

Parameters パラメータ

priority

The new priority, specified with a floating point number from 0.0 to 1.0, where 1.0 is highest priority. 新しい優先度、0.0から1.0までの浮動小数点数で指定されます、そこで1.0は最も高い優先度です。

Return Value 戻り値

YES if the priority assignment succeeded, NO otherwise. YES、もし優先度割り当てがうまくいったならば、NOをそうでなければ。

Discussion 議論

The priorities in this range are mapped to the operating system's priority values. この範囲の中の優先度は、オペレーティングシステムのもつ優先度の値に対応付けされます。

See Also 参照

Prioritizing Thread Work スレッド作業の優先順位を付ける