Multithreaded client server application