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.