Thread Operations from Within Threads Themselves
Thread.new do 10.times do |i| print i $stdout.flush Thread.stop end end