From: Stephen Celis Date: 2008-07-29T11:45:04+09:00 Subject: Re: Running methods in parallel Hi On Jul 28, 2008, at 8:50 PM, Skave Rat wrote: > is there a way to parallelize ruby methods? You can always use threads: http://corelib.rubyonrails.org/classes/Thread.html > 5.times do > Foobar.new("somestuff") > end > > #do stuff while Foobar-objects are running 5.times do Thread.new { Foobar.new("somestuff") } end # do stuff while Foobar objects are running