在.NET中,在此代码之后,什么机制阻止Thread对象被垃圾回收?
Thread
new Thread(Foo).Start(); GC.Collect();
是的,可以安全地假设某些东西有对线程的引用,我只是在徘徊究竟是什么.出于某种原因,Reflector没有向我展示System.Threading,所以我不能自己挖掘它(我知道MS发布了.NET框架的源代码,我只是没有它的方便).
System.Threading
.net multithreading garbage-collection
.net ×1
garbage-collection ×1
multithreading ×1