How to know if other threads have finished?

前端 未结 12 1864
野性不改
野性不改 2020-11-22 14:05

I have an object with a method named StartDownload(), that starts three threads.

How do I get a notification when each thread has finished executing?

12条回答
  •  醉梦人生
    2020-11-22 14:26

    Do you want to wait for them to finish? If so, use the Join method.

    There is also the isAlive property if you just want to check it.

提交回复
热议问题