Skip to content

Tag: client-server

Java Chat Multi-Client Receiving thread

In a lot of multclient java programs people use a separate thread which only receives the messages from the server. Is it really necessary? Why can’t it be done in the main thread? What should be the problem? For me a separate thread to receive the messages from the server is not that necessary, it coul…