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: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public static int OptimalThreadCount { get; }

Property Value

Type: Int32
Remarks
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