child = fork do sleep 3 puts "Child says 'hi'!"endputs "Waiting for the child process..."Process.wait childputs "All done!"