コード例 #1
0
        public void Invoke_MaxDegreeOfParallelismIsGreaterThenThreads_RunAllThreadsParallel()
        {
            const int degreeOfParallelism = 10;
            var       manager             = new TotalParallelismThreadManager(degreeOfParallelism, 1000);

            ThreadManagmentTestUtils.TestThatAllThreadsRunInParallel(manager);
        }
コード例 #2
0
 public void Invoke_DepthEqualeMaxLevel_RunAllThreadsParallel(int depth, int levels) =>
 ThreadManagmentTestUtils.TestThatAllThreadsRunInParallel(new LevelParallelismThreadManager(levels), depth);