Nevron .NET Vision
Nevron.Threading Namespace / NParallel Class / ThreadsCount Property


In This Topic
    ThreadsCount Property
    In This Topic
    Number of threads used for parallel computations.
    Syntax
    'Declaration
     
    
    Public Shared Property ThreadsCount As System.Integer
    'Usage
     
    
    Dim value As System.Integer
     
    NParallel.ThreadsCount = value
     
    value = NParallel.ThreadsCount
    public static System.int ThreadsCount {get; set;}
    Remarks

    The property sets how many worker threads are created for paralleling loops' computations.

    By default the property is set to number of CPU's in the system (see System.Environment.ProcessorCount).

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also