From: Robert Klemme Date: 2006-04-29T20:00:30+09:00 Subject: Re: Multiplexed I/O 2006/4/29, Vlad GALU : > On 4/29/06, Robert Klemme wrote: > > non native there is a certain overhead associated with them. Using > > select together with a thread pool might be an option, too. This > > approach usually scales better than individual threads per IO. > > Basically polling the socket within each thread, right ? I did this > before, in C, and indeed, it worked quite OK. I though of a different architecture: have one thread select'ing and hand off IO tasks to a set of threads via a queue. > I could've as well written in what I already know best - C++ :) My > goal is to use Ruby :) Ah, ok. Then of course, go ahead - and have fun! :-) > Thanks for the hints, Robert. Should be enough to get me going. My pleasure. Kind regards robert -- Have a look: http://www.flickr.com/photos/fussel-foto/