Implement thread pool as a service.