【发布时间】:2011-07-25 12:42:04
【问题描述】:
我需要终止一个冻结的线程,我将 IsBackground 设置为 true,但它仍然存在。线程的属性:
ThreadState = AbortRequested
IsBackground = true
当我检查冻结点时,我发现下面一行:
resultDetect = Detect(input, ref output);
该位置是第 3 方代码(方法检测)。如您所见,该线程仅更新 resultDetect 。我需要中止该线程并重新启动一个新线程以继续。否则,应用程序等待并且什么都不做 -fresh resultDetect required-
如何杀死不死的线程?
【问题讨论】:
标签: c# multithreading