This is a better approach than trying to parse the output of commands, and supports a wider array of operating systems. It is also strict, raising an exception if it cannot determine the number of processors.
10 KiB
10 KiB