Anonymous user
Concurrent computing: Difference between revisions
m
Updated code to match task and removed output as defined by task.
(Updated whitespace, removed output as defined by task) |
m (Updated code to match task and removed output as defined by task.) |
||
Line 632:
=={{header|FreeBASIC}}==
<lang freebasic>
▲ Print "Enjoy"
End Sub
Sub thread2()
Print "
End Sub
Sub thread3()
Print "
End Sub
Print "Press any key to print next batch of 3 strings or ESC to quit"
Print
Do
Dim t1 As Any Ptr = ThreadCall thread1
Dim t2 As Any Ptr = ThreadCall thread2
Dim t3 As Any Ptr = ThreadCall thread3
ThreadWait t1
ThreadWait t2
ThreadWait t3
Print
Sleep
Loop While Inkey <> Chr(27)</lang>
=={{header|Go}}==
|