2f3 Subj : Re: Socket programmation with threads To : comp.programming.threads From : Bernhard Roessmann Date : Tue May 24 2005 10:43 am christophe.anthon@gmail.com schrieb: > Well I wanted to program an C++ Chat program, so I need threads in the > server so that he can handle many incoming connections and that what > they send. You can handle more than one connection with one thread using select. Depending on your actual system conditions, this may yield better performance than using one thread for each connection. (remember: linux threads are more like processes than real "lightweight" threads). Escpecially having VERY MUCH connections, it is NOT a good idea to use one thread per connection. -- Bernhard Roessmann . 0