From: James Tucker Date: 2010-07-24T10:17:49+09:00 Subject: [ruby-core:31468] Re: [Bug #3606] Thread.stop and puts fail to work as documented. On 24 Jul 2010, at 01:52, Heesob Park wrote: > I think that the sample code should be modified like this. > > t1.rb > ==================================================== > a = Thread.new { puts "a"; Thread.stop; puts "c" } > sleep 0.1 while a.status!='sleep' > Thread.pass > puts "Got here" > a.run > a.join > sleep 1 > ==================================================== Hmm status, yeah, I can't think of a better way there (I wish there was) Maybe a.join(0.1) instead of sleep 0.1? Thread.pass is not required anymore. In docs for Thread.pass, I'm not sure what a good use case is.