When should I not use the ThreadPool in .Net?
It looks like the best option is to use a ThreadPool, in which case, why is it not the only option?
What are your experiences around this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only reason why I wouldn’t use the
ThreadPoolfor cheap multithreading is if I need to…ThreadPoolthreads are background threads)There are lots of reasons why you would need to skip the
ThreadPool, but if you don’t know them then theThreadPoolshould be good enough for you.Alternatively, look at the new Parallel Extensions Framework, which has some neat stuff in there that may suit your needs without having to use the
ThreadPool.