sample client-server application with thread pool