Ruby - Concurrent Programming
How can you modify this code to ensure the parent process waits for all child processes before continuing?
3.times do
fork { puts 'Child' }
end
puts 'Parent'3.times do
fork { puts 'Child' }
end
puts 'Parent'15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions