Ruby - Concurrent Programming
You want to run three tasks in parallel using
fork and wait for all to finish. Which code correctly achieves this?fork and wait for all to finish. Which code correctly achieves this?3.times.map { fork { ... } } stores child PIDs in an array.Process.wait(pid) to wait for each child.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions