Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
7
Task/Fork/DCL/fork-1.dcl
Normal file
7
Task/Fork/DCL/fork-1.dcl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
$! looper.com procedure
|
||||
$ i = 10
|
||||
$ loop:
|
||||
$ show time
|
||||
$ wait 'p1
|
||||
$ i = i - 1
|
||||
$ if i .gt. 0 then $ goto loop
|
||||
3
Task/Fork/DCL/fork-2.dcl
Normal file
3
Task/Fork/DCL/fork-2.dcl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$! fork.com procedure
|
||||
$ set noverify ! detached processes have verify on by default which clutters up the output log file
|
||||
$ @looper 0::2
|
||||
10
Task/Fork/Elixir/fork.elixir
Normal file
10
Task/Fork/Elixir/fork.elixir
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
defmodule Fork do
|
||||
def start do
|
||||
spawn(fn -> child end)
|
||||
IO.puts "This is the original process"
|
||||
end
|
||||
|
||||
def child, do: IO.puts "This is the new process"
|
||||
end
|
||||
|
||||
Fork.start
|
||||
Loading…
Add table
Add a link
Reference in a new issue