# list0702.rb require 'thread' puts 'hello' t = Thread::fork{ puts 'sk1' sleep(1.0) puts 'sk2' sleep(1.0) puts 'sk3' sleep(1.0) puts 'end ko thread' } puts 'sn1' sleep(1.0) puts 'sn2' t.join puts 'world'