Returns the number of cores + hyperthreads on the system. The function respects the environment variable OMP_NUM_THREADS.
OMP_NUM_THREADS
meanr.nthreads()
The number of cores + hyperthreads on the system (an integer).