C# Threading - How to start and stop a thread

前端 未结 3 1442
囚心锁ツ
囚心锁ツ 2020-12-13 19:38

Can anyone give me a headstart on the topic of threading? I think I know how to do a few things but I need to know how to do the following:

Setup a main thread that

3条回答
  •  长情又很酷
    2020-12-13 20:21

    Use a static AutoResetEvent in your spawned threads to call back to the main thread using the Set() method. This guy has a fairly good demo in SO on how to use it.

    AutoResetEvent clarification

提交回复
热议问题