Fork: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
|||
Line 63: | Line 63: | ||
This is the original process |
This is the original process |
||
</pre> |
</pre> |
||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |
||
<lang autohotkey>MsgBox, 4, Fork, Start another process? |
<lang autohotkey>MsgBox, 4, Fork, Start another process? |
||
Line 170: | Line 171: | ||
mySubroutine3: mySubroutine1 has been run |
mySubroutine3: mySubroutine1 has been run |
||
</pre> |
</pre> |
||
=={{header|C}}== |
=={{header|C}}== |
||
{{libheader|POSIX}}<lang c>#include <stdio.h> |
{{libheader|POSIX}}<lang c>#include <stdio.h> |
||
Line 195: | Line 197: | ||
child process: done |
child process: done |
||
child 3604 finished</lang> |
child 3604 finished</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|C++}}== |
=={{header|C++}}== |
||
Line 221: | Line 245: | ||
return 0; |
return 0; |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}</lang> |
}</lang> |
||
Line 815: | Line 817: | ||
Parent again. |
Parent again. |
||
</pre> |
</pre> |
||
=={{header|Kotlin}}== |
=={{header|Kotlin}}== |
||
Line 1,160: | Line 1,161: | ||
} |
} |
||
};</lang> |
};</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
Line 1,270: | Line 1,256: | ||
>>> fork() => 0 |
>>> fork() => 0 |
||
</pre> |
</pre> |
||
⚫ | |||
(formerly Perl 6) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|REXX}}== |
=={{header|REXX}}== |