http://stackoverflow.com/questions/1542213/how-to-find-the-number-of-cpu-cores-via-net-c
http://msdn.microsoft.com/en-us/library/system.environment.processorcount.aspx
@dudu:
受教了。
@爱编程的大叔:
最终采用的方法:
Console.WriteLine(Environment.ProcessorCount);