CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
|
|
@ -0,0 +1,5 @@
|
|||
(for (N . Str) '("Enjoy" "Rosetta" "Code")
|
||||
(task (- N) (rand 1000 4000) # Random start time 1 .. 4 sec
|
||||
Str Str # Closure with string value
|
||||
(println Str) # Task body: Print the string
|
||||
(task @) ) ) # and stop the task
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
(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
|
||||
Loading…
Add table
Add a link
Reference in a new issue