我所经历的this张贴在堆栈溢出拆离的线程中接受的答案说: what happens to a detached thread when main() exits is:
It continues running (because the standard doesn't say it is stopped), and that's well-defined, as long as it tou
我已经写了一个递归分离实体框架中的对象的方法。实际上它可以工作,但问题是,在执行此方法后,将删除一对多属性(对象的集合)。下面我的代码: public void DetachRec(object objectToDetach)
{
DetachRec(objectToDetach, new HashSet<object>());
}
// context is my Object
我在多线程中运行Perl脚本时遇到了麻烦。它继续消耗内存,最终系统耗尽内存并杀死它。看起来子线程已经分离,但是系统资源在完成时没有被释放。我对Perl很新,无法找到哪个部分出错。这是可能导致此问题的脚本的一部分。任何人都可以帮助我吗? use strict;
use warnings;
print "different number:\t";
my $num1=<>;
chomp $nu