Gets the number of processors on the current machine.
using System; class Sample { public static void Main() { Console.WriteLine(Environment.ProcessorCount); } }