Example client-server thread app.