Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have got Smart ThreadPool Project from this site. In that the default Maximum thread size is set to 25. I would like to set this Maximum thread size to 50 or 100 According to my need. How to do it?

I have also read that by default one single processor takes the Maximum thread size as 25. If this the case. I have dual processor how to set 25 to one processor and 25 to another processor. How to do it?


Help me through solutions?
Posted
Comments
Firo Atrum Ventus 25-Aug-11 1:14am    
Just to be clear, are you revering to http://www.codeproject.com/KB/threads/smartthreadpool.aspx?
RaisKazi 25-Aug-11 2:59am    
Not sure reason for 1*. I believe article link I provided, should clear your doubts regarding "Maximum Thread size in Smart ThreadPool". It is exact topic what you are looking for. It would be strange, if Developer working on concept like "Smart ThreadPool", needs spoon-feeding.

If you got the code from one of the articles here, you might want to post a question on the forum section below the article. That way, the author will be notified through email, about your question. The author is always the best person to answer questions about his code.
 
Share this answer
 
In short you don't want to mess with the amount of threads, thats what the ThreadPool is there for. The Smart ThreadPool dynamically the number of threads.
100 threads? wont perform better than 20 threads unless you have a f***load of cores. What I'm trying to say is don't mess with the Thread Pool, let someone like Ami Bar (Creator of the smart Thread Pool) do that for you.
 
Share this answer
 
Have a look at below CodeProject Article.

Smart Thread Pool[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900