How to start a stopped thread

前端 未结 5 2080
孤城傲影
孤城傲影 2021-02-14 10:53

I create a new thread and start it from a main thread.

m_MyThread = new Thread(HandleMyThread);
m_MyThread.IsBackground = true;
m_MyThread.Start();

private void         


        
5条回答
  •  無奈伤痛
    2021-02-14 11:27

    If you want to reuse the thread without new a thread every time , you can consider the implementation of thread pool.

提交回复
热议问题