Fork: Difference between revisions

285 bytes added ,  12 years ago
Line 167:
[ "Hello form child" print flush 0 _exit ] [ drop "Hi from parent" print flush ] with-fork</lang>
=={{header|Fexl}}==
There are many levels at which I can address this task. I'll start from the lowest possible level:
<lang fexl>
fork \pid
print "pid = ";print pid;nl;
</lang>
 
You'll see the output of two processes there, with the child process printing the 0:
<lang fexl>
pid = 10077
pid = 0
</lang>
 
<lang fexl>
Anonymous user