update ThreadPool