Ruby - Concurrent Programming
What will this Ruby code output?
count = 0
threads = 2.times.map do
Thread.new do
5.times { count += 1 }
end
end
threads.each(&:join)
puts count