Use sysctlbyname(3) hw.logicalcpu on macOS
Use of hw.ncpu has long been deprecated.
Merge request reports
Activity
Filter activity
LGTM. IIRC
hw.logicalcpu
was "new" at some point, and hasn't been around forever, but I can't easily find a reference to where it was introduced. A little bit of googling finds https://bugs.python.org/issue17444 which cites a mail from 2007 from a mailing list archive (which no longer is where it used to be) mentioninghw.logicalcpu
- so it's safe to say it has been around long enough.
Please register or sign in to reply