9 lines
194 B
Erlang
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").
|