Fork: Difference between revisions

Content added Content deleted
m (→‎{{header|Kotlin}}: Refreshed output)
Line 219: Line 219:
((plusp pid) (write-line "This is the original process."))
((plusp pid) (write-line "This is the original process."))
(t (error "Something went wrong while forking."))))</lang>
(t (error "Something went wrong while forking."))))</lang>

=={{header|D}}==
<lang D>import core.thread;
import std.stdio;

void main() {
new Thread({
writeln("Spawned thread.");
}).start;
writeln("Main thread.");
}</lang>


=={{header|DCL}}==
=={{header|DCL}}==