RosettaCodeData/Task/Fork/Erlang/fork-1.erl
Ingy döt Net 6f050a029e update
2013-06-05 21:47:54 +00:00

9 lines
194 B
Erlang

-module(fork).
-export([start/0]).
start() ->
erlang:spawn( fun() -> child() end ),
io:format("This is the original process~n").
child() ->
io:format("This is the new process~n").