Subj : Re: Challenge: Multithreading & Synchronization To : comp.programming.threads From : Uenal Mutlu Date : Wed May 18 2005 03:32 pm "Sergey P. Derevyago" wrote > Uenal Mutlu wrote: > > Here's a real-world synchronization challenge for accessing shared data > > from multiple threads (some call this "thread synchonization"): > > > It's not a challenge, dude. It's even not a homework assignment. > > > 1) A server application uses threads to serve clients. > > 2) It uses a thread per connected client. > > 3) There can be as many as 1000 or even more clients. > > > Don't use "a thread per connection" in a case of "as many as 1000 or even > more clients" -- it's a HUGE pessimization. If you have a better method then simply solve it using that method, if you can :-) .