mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 00:46:07 +00:00
add join
This commit is contained in:
@@ -11,4 +11,6 @@ term.time("start")
|
|||||||
for (i from 0 to 100) do
|
for (i from 0 to 100) do
|
||||||
threads.append(thread(()=mythread(i)))
|
threads.append(thread(()=mythread(i)))
|
||||||
threads[i].start()
|
threads[i].start()
|
||||||
|
for (i from 0 to 100) do
|
||||||
|
threads[i].join()
|
||||||
term.timeEnd("start")
|
term.timeEnd("start")
|
||||||
Reference in New Issue
Block a user