t1 = Thread.new do Thread.stop puts "There is an emerald here."endt2 = Thread.new do Thread.stop puts "You're at Y2."endsleep 1t1.wakeupt2.run