Ruby - Concurrent Programming
Find the problem in this Ruby code snippet:
mutex = Mutex.new
threads = 2.times.map do
Thread.new do
mutex.synchronize do
puts 'Start'
sleep 1
puts 'End'
end
end
end
threads.each(&:join)