Fork: Difference between revisions
Content added Content deleted
(Added zkl) |
m (→{{header|Scala}}: remove misused category) |
||
Line 881:
=={{header|Scala}}==
===A Linux version===
<lang scala>import java.io.IOException
Line 914:
}
}</lang>
=={{header|Slate}}==
The following built-in method uses the cloneSystem primitive (which calls fork()) to fork code. The parent and the child both get a socket from a socketpair which they can use to communicate. The cloneSystem is currently unimplemented on windows (since there isn't a fork() system call).<lang slate>p@(Process traits) forkAndDo: b
|