static List
然后每隔一段时间在检测线程中判断其他线程是否在运行。
foreach(Thread n in Listt)
{
if (n.ThreadState != ThreadState.Running)
{
//程序关闭
}
}
你用Thread来处理就ok
thread = new Thread(xxx);
while (thread.IsAlive){
Thread.Sleep(1000);
}
Console.Write("线程意外终止了");