update thread pool management