System.Threading.Thread th1; public void TestThread() { if (th1 == null || !th1.IsAlive) { th1 = new System.Threading.Thread(要执行的方法); th1.IsBackground = true; th1.Start(); } }
System.Threading.Thread th1; public void TestThread() { if (th1 == null || !th1.IsAlive) { th1 = new System.Threading.Thread(要执行的方法); th1.IsBackground = true; th1.Start(); } }