摘要:
private void btnRunBackgroundWorker_Click(object sender, EventArgs e) { Console.WriteLine($"主线程:{Thread.CurrentThread.ManagedThreadId}"); InitBackgrou 阅读全文
摘要:
private void btnRunBackgroundWorker_Click(object sender, EventArgs e) { Console.WriteLine($"主线程:{Thread.CurrentThread.ManagedThreadId}"); InitBackgrou 阅读全文
摘要:
class Program { static void Main(string[] args) { Console.WriteLine($"主线程:{Thread.CurrentThread.ManagedThreadId}"); var obj = new MyTestClass(); obj.T 阅读全文
摘要:
方式一: 1 private void btnCalc_Click(object sender, EventArgs e) 2 { 3 new Thread(new ThreadStart(Test)).Start(); 4 } 5 6 private void Test() 7 { 8 if (t 阅读全文
|