Run server with a threadpool