Top community members
All Wiki Articles Create Wiki Article

Welcome to Dirask IT community! ❤ 💻
We are community that shares solutions with each other.

If you think you have something to add here.

you are welcome with your fresh ideas - List Articles

C#/.NET - get number of processors on the current machine

0 contributions
9 points

In C#/.NET it is possible to get number of processors on the current machine with Environment.ProcessorCount property. 

Environment.ProcessorCount property example

int count = Environment.ProcessorCount;

Console.WriteLine("Number of available processors is " + count + ".");


Number of available processors is 4.


  1. Environment.ProcessorCount Property - Microsoft Docs
0 contributions

Checkout latest Findings & News:

Checkout latest questions:

Checkout latest wiki articles:

Hey 👋
Would you like to know what we do?
  • Dirask is IT community, where we share coding knowledge and help each other to solve coding problems.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.
Read more