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.