Instance Property インスタンスプロパティ

activeProcessorCount

The number of active processing cores available on the computer. コンピュータ上で利用可能なアクティブプロセッシングコアの数。

Declaration 宣言

var activeProcessorCount: Int { get }

Discussion 議論

Whereas the processorCount property reports the number of advertised processing cores, the activeProcessorCount property reflects the actual number of active processing cores on the system. There are a number of different factors that may cause a core to not be active, including boot arguments, thermal throttling, or a manufacturing defect. processorCountプロパティが公表されるプロセッシングコアの数を報告するのに対して、activeProcessorCountプロパティはシステム上で活動しているプロセッシングコアの実際の数を反映します。あるコアが活動しなくなるかもしれないたくさんの異なる要因が存在します、ブート引数、温度による増減、または製造欠陥を含めて。

This property value is equal to the result of entering the command sysctl -n hw.logicalcpu on the current system. このプロパティ値は、コマンドsysctl -n hw.logicalcpuを現在のシステム上で入力する結果に等しいです。

See Also 参照

Getting Computer Information コンピュータ情報を取得する