How do you detect the number of physical processors/cores in .net?
System.Environment.ProcessorCount is what you need