RosettaCodeData/Task/Concurrent-computing/PicoLisp/concurrent-computing-2.l

7 lines
356 B
Text
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
(for Str '("Enjoy" "Rosetta" "Code")
(let N (rand 1000 4000) # Randomize
(unless (fork) # Create child process
(wait N) # Wait 1 .. 4 sec
(println Str) # Print string
(bye) ) ) ) # Terminate child process