Fork: Difference between revisions
Content added Content deleted
m (→{{header|J}}) |
Walterpachl (talk | contribs) (add ooRexx) |
||
Line 670: | Line 670: | ||
else |
else |
||
print_endline "This is the new process";;</lang> |
print_endline "This is the new process";;</lang> |
||
=={{header|ooRexx}}== |
|||
<lang oorexx>sub=.fork~new |
|||
sub~sub |
|||
Call syssleep 1 |
|||
Do 3 |
|||
Say 'program ' time() |
|||
Call syssleep 1 |
|||
End |
|||
::class fork |
|||
:: method sub |
|||
Reply earlyresult |
|||
Do 3 |
|||
Say 'subroutine' time() |
|||
Call syssleep 1 |
|||
End</lang> |
|||
{{out}} |
|||
<pre>subroutine 11:16:11 |
|||
program 11:16:12 |
|||
subroutine 11:16:12 |
|||
program 11:16:13 |
|||
subroutine 11:16:13 |
|||
program 11:16:15</pre> |
|||
=={{header|Oz}}== |
=={{header|Oz}}== |