ref: ecb0596f91e9b7586e6f9dcfc0f449e863c69820 dir: /Test_Multi_Threading.rb/
def Test for i in 0..5 do puts i; # sleep(0.5) end end t1 = Thread.new{Test()} t2 = Thread.new{Test()} t1.join t2.join