RosettaCodeData/Task/Fork/Erlang/fork-1.erl
2023-07-01 13:44:08 -04: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").