Environment.ProcessorCount
Imports System Public Class MainClass Shared Sub Main() Console.WriteLine("ProcessorCount: " & System.Environment.ProcessorCount) End Sub End Class