Start and stop(forced) a threaded job

后端 未结 3 981
栀梦
栀梦 2020-12-11 08:52

I want to know a proper way to start and stop a threaded job forced and unforced. Is this the proper way to stop a Thread?

    public class ProcessDataJob :          


        
3条回答
  •  鱼传尺愫
    2020-12-11 09:22

    You could use the .NET ThreadPool class, this way you don't have to handle the stack yourself.

提交回复
热议问题