consistent getter for number of threads