---
title: "Processor count in C#"  
description: "Processor count in C#"  
author: "Anonymous User"  
published: 2013-10-07  
updated: 2013-10-08  
canonical: https://www.mindstick.com/forum/1639/processor-count-in-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Processor count in C#

How can I [count](https://www.mindstick.com/forum/157774/selecting-count-with-distinct) the [processor](https://www.mindstick.com/news/2830/qualcomm-s-snapdragon-8-gen-3-processor-might-arrive-earlier-than-expected) in C#?

## Replies

### Reply by Anonymous User

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();}
```


---

Original Source: https://www.mindstick.com/forum/1639/processor-count-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
