Print the number of processing units available to the current process, which may be less than the number of online processors. If this information is not accessible, then print the number of processors installed. If the OMP_NUM_THREADS environment variable is set, then it will determine the returned value. The result is guaranteed to be greater than zero. Synopsis:
nproc [option]
The program accepts the following options. Also see Common options.
An exit status of zero indicates success, and a nonzero value indicates failure.