From: 7stud -- Date: 2007-10-14T02:43:39+09:00 Subject: Re: Is there a standard pattern for threaded access to a file? ara.t.howard wrote: > On Oct 12, 2007, at 8:35 PM, 7stud -- wrote: > >> >> Skip that inappropriate suggestion and use the following instead: >> >> threads.each {|t| t.join} > > unless you use > > Thread.current.abort_on_exception = true > > you should *always* use 'map' and check the return value. > 1) Where are you checking a return value: threads.map{|t| t.join} In fact, you discard map's return value. 2) How is map's return value ever going to be different than your threads array? -- Posted via http://www.ruby-forum.com/.