Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
It is a C# program. But the classes used were present in System.Threading.dll, which is now a part of mscorlib.dll.

While migrating, found that we have equivalent for TaskManager class ( which is TaskScheduler), but TaskManagerPolicy is no more there. So, if anyone can provide a piece of C# code which will achieve the solution to use all cores on theboxes, and makes 1 thread per core.

Note- Environment.ProcessorCount is used to find the number of cores.
Posted
Comments
virusstorm 12-Aug-15 12:44pm    
Have you looked at the Task Parallelism Library?

https://msdn.microsoft.com/en-us/library/dd537609%28v=vs.110%29.aspx

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