From: Martin DeMello Date: 2003-01-16T09:20:28+09:00 Subject: Re: Ruby advocacy in sigs Mauricio Fern?ndez wrote: > On Mon, Jan 13, 2003 at 05:50:01AM +0900, Martin DeMello wrote: >> nthreads.times {|i| Thread.new {task[i].call}.join} >> #Multithreading Ruby style. > > This executes the tasks sequentially as you wait for each one to end > before starting the next... Good catch! I'd subtly misunderstood the way in which 'join' worked - I thought it prevented the calling thread from terminating, not from continuing. martin