# std/os/index.zig: use "hw.logicalcpu" instead of "hw.ncpu" in macOS; \(\#1317\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/432b7685bfa840a459b492a37894f7ffed870c7e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 432b7685bfa840a459b492a37894f7ffed870c7e

Requested commit: 432b7685bfa840a459b492a37894f7ffed870c7e

Commit: 432b7685bfa840a459b492a37894f7ffed870c7e

Tree: 55d18f9a7c9423541dd0a2555d5269214d303419

Author: kristopher tate

Committer: Andrew Kelley

## Message

```
std/os/index.zig: use "hw.logicalcpu" instead of "hw.ncpu" in macOS; (#1317)

Tracking Issue #1252 ;

hw.ncpu was deprecated in macOS. Among 4 new options available (hw.{physicalcpu, physicalcpu_max, logicalcpu, logicalcpu_max}), hw.logicalcpu was chosen because it actually reflects the number of logical cores the OS sees.
```

## Parents

- [e66f538972d1278ed95513aa1d97c196818a73c6](https://git.cafe/gitcafe/zig/commit/e66f538972d1278ed95513aa1d97c196818a73c6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/432b7685bfa840a459b492a37894f7ffed870c7e?format=markdown)
