Fork: Difference between revisions

295 bytes added ,  17 years ago
no edit summary
(C/POSIX example)
No edit summary
Line 30:
</pre>
 
==[[Erlang]]==
[[Category:Erlang]]
 
-module(fork).
-export([start/0]).
start() ->
spawn(fun child/0),
io:format("This is the original process~n").
child() ->
io:format("This is the new process~n").
 
Then you can compile your code and execute it:
 
c(fork).
fork:start().
 
==[[Perl]]==
Anonymous user