Im fairly new to multithreaded programming and I am creating a basic applet chat room. I have the basics working but im not sure how to go about handling the connections on the server. I was thinking about creating each connection on the server as a thread so that all incomming messages from different clients can be read at the same time. But I was wondering how would java cope if there were say a few hundred clients connected to the server, would java have trouble handling that many threads at the same time? The other way I thought would be to have just 1 thread for reading messages and 1 for sending messages which would loop through each connection reading 1 message at a time. Does anyone know which method would be best to use or have a more effecient alternative?