Ruby - Concurrent Programming
What will be the output of this Ruby code?
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"join.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions