Property Value

// This example demonstrates the // Environment.ProcessorCount property.using System;
class Sample
{
publicstaticvoid Main()
{
Console.WriteLine("The number of processors " +
"on this computer is {0}.",
Environment.ProcessorCount);
}
}
/*
This example produces the following results:
The number of processors on this computer is 1.
*/