---
title: processorCount
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/processinfo/processorcount
---

# processorCount

The number of processing cores available on the computer.

## Declaration

```swift
var processorCount: Int { get }
```

## Discussion

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

- [activeProcessorCount](foundation/processinfo/activeprocessorcount.md)
- [physicalMemory](foundation/processinfo/physicalmemory.md)
- [isDeviceCertified(for:)](foundation/processinfo/isdevicecertified(for:).md)
- [hasPerformanceProfile(_:)](foundation/processinfo/hasperformanceprofile(_:).md)
- [systemUptime](foundation/processinfo/systemuptime.md)
