Contents

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