Monitor ThreadPool idle

add the logic of thread pool idle