From: Lionel Bouton Date: 2007-06-30T04:56:36+09:00 Subject: Re: Threads issue. Marcin Tyman wrote: > Lionel, > It looks like the issue is in Thread#run which doesn't guarantee > starting myThread before Thread#join. If i.e. myThread.pass is commented > out and any time consuming loop In the primary Thread I suppose? > is included before myThread.run > everything works fine (without Thread#pass). > > Which means you let myThread stop before running myThread.run, doesn't it? Does the rubydoc example for Thread.stop: a = Thread.new { print "a"; Thread.stop; print "c" } Thread.pass print "b" a.run a.join at least outputs 'abc' for you ? Lionel