1

Possible Duplicate:
Thread vs ThreadPool

What are the benefits of using ThreadPool instead of creating our own?

Community
  • 1
  • 1
udana
  • 11
  • 1
  • Duplicate - http://stackoverflow.com/questions/230003/thread-vs-threadpool – ChrisF Nov 30 '09 at 12:39
  • Do you mean Thread vs. ThreadPool ( http://stackoverflow.com/questions/230003/thread-vs-threadpool )? – TcKs Nov 30 '09 at 12:42

2 Answers2

1

The main one is that it has already been thoroughly debugged and tested.

You can write your own and provide other functionality I suppose, but you really have to know what you are doing. I've seen people do it, but it in my opinion, there isn't much of a benefit for doing so.

kemiller2002
  • 113,795
  • 27
  • 197
  • 251
1

ThreadPool is already done, debugged, and lets you concentrate on writing code that you need to write instead of reinventing systems code that someone else has already written?

Donnie
  • 45,732
  • 10
  • 64
  • 86