Threads pausing and resuming c#

前端 未结 5 1334
心在旅途
心在旅途 2021-01-13 19:39

I\'ve got several threads ,how can I pause/resume them?


From duplicate question:

How can i pause 5 threads, and to remember their status. Because one o

5条回答
  •  臣服心动
    2021-01-13 20:24

    You can use Suspend() and Resume().
    http://msdn.microsoft.com/en-us/library/system.threading.thread.resume.aspx
    http://msdn.microsoft.com/en-us/library/system.threading.thread.suspend.aspx
    You can also read:
    What are alternative ways to suspend and resume a thread?

提交回复
热议问题