#!ruby -w thread = Thread.new { sleep 10; puts "Ok"; }; i = 0; while true; i += 1; puts "#{i} - #{thread}"; if !thread.alive?; break; end; sleep 1; end; __END__