2009-11-30 78 views
1

可能重复:
Thread vs ThreadPoolC#线程编程

什么是使用线程池,而不是创造我们自己的利益?

+0

Duplicate - http://stackoverflow.com/questions/230003/thread-vs-threadpool – ChrisF 2009-11-30 12:39:51

+0

你的意思是线程与ThreadPool(http://stackoverflow.com/questions/230003/thread-vs-threadpool)? – TcKs 2009-11-30 12:42:07

回答

1

主要的是它已经彻底调试和测试。

你可以自己编写并提供其他功能,但是你必须知道自己在做什么。我曾见过人们这样做,但在我看来,这样做没有太大的好处。

1

ThreadPool已经完成调试,让您专注于编写您需要编写的代码,而不是重新编写其他人已经编写的系统代码?