views:

169

answers:

0

I have a threading issue,

I'm setting the ThreadPool.SetMaxThreads(maxThreads, System.Environment.ProcessorCount) to 10 for example.

But when I check how many are avaliable ThreadPool.GetAvailableThreads() it tells me theres (maxThreads - 1) so 9 in the example, but then goes onto use 10 threads.

Any ideas why this is?

Duplicate of this question.