macOS / binaries /

nproc

/usr/local/bin/nproc
Print the number of processing units available

nproc prints the number of processing units available to the current process, which may be less than the number of online processors.