c# 多线程问题,如何终止特定线程
private void button1_Click(object sender, EventArgs e) { for ( int i=0;i<3;i++) { Thread th = new Thread(delegate() { Test(i.ToString()); }); Thread.Sleep(1000); th.Start(); } } void Test(string hwnd) { do { MessageBox.Show(hwnd); } while (true); }