C# Threading.Suspend in Obsolete, thread has been deprecated?
问题 In my application, I am performing my file reading by another thread(other that GUI thread). There are two buttons that suspend and resume the Thread respectively. private void BtnStopAutoUpd_Click(object sender, EventArgs e) { autoReadThread.Suspend(); } private void BtnStartAutoUpd_Click(object sender, EventArgs e) { autoReadThread.Resume(); } but I am facing this warning, Thread.Suspend has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and