Click or drag to resize

ThreadedCommandOptimalThreadCount Property

Returns the best number of threads to use for the current system.

Namespace:  Atalasoft.Imaging.ImageProcessing
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: (.NET 4.5.2, x86)
public static int OptimalThreadCount { get; }

Property Value

Type: Int32
This is typically the number of CPUs available times two. The number of CPUs is not always the number of physical CPUs chips in the computer. For example, a computer with two dual core CPUs may report 8 for its OptimalThreadCount. Other variables like hyperthreading will affect the final count.
See Also