set the minimum number of threads