线程是否由线程池管理?

guy*_*uyl 4 c# clr threadpool

我知道CLR给每个AppDomain ThreadPool时间片工作,但我想知道是否通过创建这样的新线程Thread t = new Thread(...);

它是由CLR管理还是由AppDomin ThreadPool?管理?

rta*_*bot 6

Thread t = new Thread();将不会被管理ThreadPool.但它是CLR在操作系统线程上提供的抽象.ThreadPool是一个附加抽象,有助于重用线程和共享线程资源.

以下是.NET中线程的优秀资源:http://www.albahari.com/threading/

如果您使用的是.NET 4.0,请考虑使用TPL.