How to discover number of *logical* cores on Mac OS X? September 19, 2022 by Tarik You can do this using the sysctl utility: sysctl -n hw.ncpu