ManualResetEvent使用
摘要:假设一个使用场景: 1. 有一台仪器,需要预热后才能使用; 2. 需要使用线程操作这台仪器; static bool isReady = false; public static void Test1() { Thread th = new Thread(() => { while (!isRead
阅读全文
posted @ 2020-05-14 11:34
posted @ 2020-05-14 11:34