Web- und Software Development

Anzahl der Prozessorkerne – C# Quicky

Written By: - Mai• 12•09

In der Klasse Environment, findet man die Methode ProcessorCount, welche einem die Anzahl der Prozessorkerne ausgibt.


static void Main(string[] args)
{
    int countCore = Environment.ProcessorCount;
    Console.WriteLine(countCore.ToString());
}

countcore

Ähnliche Beiträge

You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

One Comment

  1. Sven sagt:

    Das ist ja cool! Danke dafür.Die ganze Seite finde ich toll.