public static bool SetMinThreads(int workerThreads, int completionPortThreads) { ThreadPoolGlobals.tpWarmupCount = Math.Max(ThreadPoolGlobals.GetProcessorCount() * 2, workerThreads); return(SetMinThreadsNative(workerThreads, completionPortThreads)); }