update the way the number of cores used is set.