---
title: activeProcessorCount
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/processinfo/activeprocessorcount
---

# activeProcessorCount

The number of active processing cores available on the computer.

## Declaration

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

## Discussion

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. This property value is equal to the result of entering the command sysctl -n hw.logicalcpu on the current system.

## See Also

### Getting computer information

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