Home > DeveloperSection > Forums > Processor count in C#
Ankit Singh

Total Post:341

Points:2389
Posted on    October-07-2013 8:41 AM

 C# C# 
Ratings:


 1 Reply(s)
 1002  View(s)
Rate this:

How can I count the processor in C#?



Jeet Verma
Jeet Verma

Total Post:110

Points:776
Posted on    October-08-2013 12:53 AM

You Should use for getting the Processor count in C#

static void Main(string[] args)

{

   Console.WriteLine("You have {0} Processor(s) :: ", Environment.ProcessorCount);

   Console.ReadKey();

}


Modified On Oct-08-2013 12:54:42 AM

Don't want to miss updates? Please click the below button!

Follow MindStick