Instance Property

processorCount

The number of processing cores available on the computer.

Declaration

var processorCount: Int { get }

Discussion

This property value is equal to the result of entering the command sysctl -n hw.ncpu on the current system.

See Also

Getting Computer Information

var activeProcessorCount: Int

The number of active processing cores available on the computer.

var physicalMemory: UInt64

The amount of physical memory on the computer in bytes.

var systemUptime: TimeInterval

The amount of time the system has been awake since the last time it was restarted.