Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there a systematic way to determine the number of threads to create? Currently I've been setting the number of threads according to the number of processors on my machine i.e. int numberOfThreads = Enviornment.ProcessorCount.

what's the correct way to determine the number of threads needed to handle a particular task?
Posted
Updated 13-Dec-11 13:21pm
v2
Comments
Philippe Mori 13-Dec-11 19:35pm    
What task? It depends on the task.
d.allen101 13-Dec-11 19:36pm    
database queries that are firing every few milliseconds

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