Make the server use a threadpool to do tasks.