create a thread-pooled server