Subj : Re: threaded application scalability question To : comp.programming.threads From : Marcin 'Qrczak' Kowalczyk Date : Wed Feb 16 2005 06:07 pm "David Schwartz" writes: >> My question: Would it be reasonable to create a thread when a new >> session is created (i.e. a new user logs in), and have that thread stay >> active as long as the user is logged in. > > Reasonable, but very sub-optimal. This depends on the implementation of threads. OS-level threads will probably be too heavy when there are several thousands of them, but if the given language implements threads in userspace, they might scale exactly as hand-written dispatching could - because it's essentially the same, only the source code is written more conveniently. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ .