Does any one know how to use the following classes in ParallelExtensionExtras and what they are used for?
IOCompletionPortTaskScheduler.cs
IOTaskScheduler.cs
IOTaskScheduler
While we often refer to “the” .NET thread pool, the
ThreadPool
abstraction in .NET is actually built on top of two pools, one referred to as the worker pool and one referred to as the I/O pool. The former is what’s targeted by theQueueUserWorkItem
method as well as by the defaultTaskScheduler
, while the latter is targeted by theUnsafeQueueNativeOverlapped
method, and is frequently used for work in Windows Communication Foundation and Windows Workflow Foundation. TheIOTaskScheduler
scheduler in the IOTaskScheduler.cs file runs tasks on this I/O thread pool via theUnsafeQueueNativeOverlapped
method.
From here: ParallelExtensionsExtras Tour – #7 – Additional TaskSchedulers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With