key to set number of threads in periodically