Use threadpool to handle ping task