摘要:
using System; using System.Threading; namespace ConsoleApp1 { class MyThread { Thread t = null; ManualResetEvent manualEvent = new ManualResetEvent(true);//为true,一开始就可以执行 ... 阅读全文
摘要:
using System; using System.Threading; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { //声明CancellationTokenSource对象 static CancellationTokenSource cance... 阅读全文