日期:2014-05-17 浏览次数:21761 次
Thread testThread = new Thread(this.test);
testThread.Name = "a" + countNum;
static List<Thread> currentThrend=new List<Thread>();
Thread testThread = new Thread(this.test);
testThread.Name = "a" + countNum;
currentThrend.Add(testThread);
public CloseTread(string name)
{
Thread t=currentThrend.Find(b=>b.Name==name);
if(t!=null)
{
t.Abort();
}
}
}