Project

General

Profile

Bug #4612 » test.rb

test sample - serge_balyuk (Serge Balyuk), 04/26/2011 03:13 AM

 
require 'fiber'

t = (1..10).collect do
Thread.new do
Fiber.current
s2 = '!!!' * 5000000
end
end

puts "HELLO!"

t.each(&:join)

puts "Lucky me!"
(1-1/2)