From: Ripta Pasay Date: 2008-02-20T05:35:24+09:00 Subject: Re: On Wed, 20 Feb 2008 05:01:13 +0900, "David A. Black" wrote: > (That last one had both letters but only one newline.) > > I'm not quite sure what all of this adds up to, in terms of predicting > thread behavior at or near the end of a program. That one can't? :-) > > > David > > -- Was order of execution in Thread ever guaranteed? The output, for instance, is different between my two machines, even on the same version of ruby: $ ruby -ve 'Thread.new { puts "a" }; puts "b"' ruby 1.9.0 (2008-02-16 revision 3) [i686-linux] b $ ruby -ve 'Thread.new { puts "a" }; puts "b"' ruby 1.9.0 (2008-02-16 revision 3) [i686-darwin8.9.1] ba If I needed to ensure a thread finishes before exiting, I would #join it. -Ripta