fork download
threads = []
x = 1
(1..5).each do |i|
  x += 1
  threads << Thread.new {sleep 1; Thread.current[:output] = "#{x}" }
end
threads.each do |t|
  t.join
  puts t[:output]
end
Success #stdin #stdout 0.01s 6000KB
stdin
Standard input is empty
stdout
6
6
6
6
6