The following command returns the number of processors which are currently online (i.e., available):
$ getconf _NPROCESSORS_ONLN

Reply via email to