Using multithreads to simulate the interaction between a single server and multiple clients.