Table of Contents

SetConcurrentThreadCount Method

SetConcurrentThreadCount(int)

public static void SetConcurrentThreadCount(int numThreads)

Parameters

numThreads int

SetConcurrentThreadCount(ref ConcurrentExclusiveSchedulerPair, int, int, TaskScheduler?)

public static void SetConcurrentThreadCount(ref ConcurrentExclusiveSchedulerPair scheduler, int numThreads, int adjustMaxThreadCount = 3, TaskScheduler? baseScheduler = null)

Parameters

scheduler ConcurrentExclusiveSchedulerPair
numThreads int
adjustMaxThreadCount int

Resulting max thread count for ThreadPool will be equal to or greater than numThreads * adjustMaxThreadCount.

baseScheduler TaskScheduler