Default the number of threads to the same as the number of CPUs