From: Robert Klemme Date: 2010-12-17T18:15:44+09:00 Subject: Re: Ruby 1.9.2 : Io performance when application use multithread On 16.12.2010 14:27, zuerrong wrote: > 2010/12/16 Robert Klemme: > >>> Thanks for all the valueable info. >>> Does ruby's threads have great improvement than multi-processes? >> >> I am not sure what you are asking here. Are you talking about current >> situation or the future development? > > What I'm asking is, does ruby's threads behave better on performance > than forking? It depends. Generally even Ruby's green threads work pretty well for things doing IO on multiple channels. It depends on the problem, IO bandwidth you need and other computations that you need to do in between. Processes might be better but then again, if you constantly keep forking short lived processes chances are that fork is not your friend. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/