Quantcast
Channel: Math.NET Numerics
Viewing all articles
Browse latest Browse all 971

New Post: Control.NumberOfParallelWorkerThreads is not system wide

$
0
0
The naming is very misleading, Max- or even DesiredDegreeOfParallelism would describe much more closely what it is about. We do not do any active thread management at all and therefore cannot limit the number of threads created and used, neither per call nor globally. Instead, as you noted, it does only control the desired or maximum number of parallel execution, per call.

What we could do is expose a TPL TaskScheduler in Control (.Net 4 builds and higher) which would default to ThreadPoolTaskScheduler (status quo) but could be replaced with your own if needed. What do you think?

Thanks,
Christoph

Edit: ah, you came to a similar conclusion regarding TaskScheduler :)

Viewing all articles
Browse latest Browse all 971


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>