Ruby - Concurrent Programming
What will this Ruby code print?
t1 = Thread.new { sleep 0.2; puts "First" }
t2 = Thread.new { puts "Second" }
t1.join
t1 = Thread.new { sleep 0.2; puts "First" }
t2 = Thread.new { puts "Second" }
t1.join
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions