Multi threaded client and server on Linux