RosettaCodeData/Task/Fork/Erlang/fork-1.erl

10 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").