From: Gary Wright Date: 2007-02-25T06:04:40+09:00 Subject: Re: threads within a thread On Feb 24, 2007, at 1:24 PM, Logan Capaldo wrote: > Actually, (appealling to authority here :) ) I believe Francis has > stated in the past that the Thread overhead kills the advantage for > even > IO bound tasks (in Ruby specifically) and that a select loop is > better. I'd definitely defer to Francis on this but, under the hood, Ruby uses select to multiplex IO from multiple threads so I'd be surprised if a single Ruby thread using Kernel#select explicitly would do better than the builtin multiplexing. I suppose it depends what kind of IO you are talking about. Disk I/O is going to be faster than network IO. I would be *really* surprised to find that Ruby's green threads overhead is high enough to swamp the effects of network I/O. Gary Wright