update thread pool