Add unbounded task scheduler for divisor testing

This commit is contained in:
Marek Lemańczyk committed 2025-10-17 11:26:28 +02:00
1 parent c4e56bf753
commit 70637c3fba
2 files changed
+36 -1

No files matched your search

@@ -253,7 +253,8 @@ public static class MersenneNumberDivisorByDivisorTester
{
ParallelOptions options = new()
{
MaxDegreeOfParallelism = workerCount
MaxDegreeOfParallelism = workerCount,
TaskScheduler = UnboundedTaskScheduler.Instance
};
Parallel.ForEach(filteredPrimes, options, ProcessPrime);