System.Threading.ThreadPool.SetMaxThreads C# (CSharp) 메소드

SetMaxThreads() 공개 정적인 메소드

public static SetMaxThreads ( int workerThreads, int completionPortThreads ) : bool
workerThreads int
completionPortThreads int
리턴 bool
        public static bool SetMaxThreads(int workerThreads, int completionPortThreads)
        {
            throw null;
        }

Usage Example

예제 #1
0
 private static ThreadPool GetThreadPool(ThreadPoolName uniqueId)
 {
     uniqueId = TranslatePool(uniqueId);
     ThreadPool currentPool;
     lock (threadPool)
     {
         if (!threadPool.TryGetValue(uniqueId, out currentPool))
         {
             currentPool = new ThreadPool(uniqueId.ToString());
             threadPool[uniqueId] = currentPool;
             currentPool.SetMaxThreads(10);
         }
     }
     return currentPool;
 }