Anonymous user
Fork: Difference between revisions
m
→{{header|J}}
m (→{{header|J}}) |
m (→{{header|J}}) |
||
Line 472:
=={{header|J}}==
This example works by calling fork in a shared object library of Ubuntu 14.04.1 LTS .
<lang J>
load'dll'
Fork =: (('Error'"_)`('Parent'"_)`)(@.(
The child process explicitly exits
▲The child process explicitly exits, with the child remaining as a zombie process until the parent terminates.
<pre>
NB. interactive session demonstrating Fork
Line 483 ⟶ 482:
SLEEP =: 3
sleep =: SLEEP Time
parent
i._2 3 4 NB. interactive computations continue in the parent process
|