Fork: Difference between revisions
Content deleted Content added
MaiconSoft (talk | contribs) Added Delphi example |
Updated to make the program able to compile and execute. Added output. |
||
Line 1,020:
=={{header|Nim}}==
<lang nim>import posix
var pid = fork()
if pid < 0:
elif pid > 0:
# Further parent stuff.
else:
▲# further Parent stuff here</lang>
{{out}}
<pre>This is the parent process and its child has id 8506.
This is the child process.</pre>
=={{header|OCaml}}==
|