Fork: Difference between revisions

Content added Content deleted
(→‎{{header|ooRexx}}: add version 2 using the START method)
m (→‎REXX version 1 using REPLY: remove returned value and let subroutine go on after the program's end)
Line 683: Line 683:
::class fork
::class fork
:: method sub
:: method sub
Reply earlyresult
Reply
Do 3
Do 6
Say 'subroutine' time()
Say 'subroutine' time()
Call syssleep 1
Call syssleep 1
End</lang>
End</lang>
{{out}}
{{out}}
<pre>subroutine 11:16:11
<pre>subroutine 10:53:27
program 11:16:12
program 10:53:28
subroutine 11:16:12
subroutine 10:53:29
program 11:16:13
program 10:53:35
subroutine 11:16:13
subroutine 10:53:38
program 11:16:15</pre>
program 10:53:40
subroutine 10:53:40
subroutine 10:53:41
subroutine 10:53:42</pre>


===version 2 using START===
===version 2 using START===