Ruby - Concurrent Programming
What will this Ruby code output?
thread = Thread.new { 3.times { |i| puts i; sleep 0.1 } }
thread.join
puts 'Done'thread = Thread.new { 3.times { |i| puts i; sleep 0.1 } }
thread.join
puts 'Done'15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions