Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does any one know how to use IOCompletionPortTaskScheduler and IOTaskScheduler in ParallelExtensionExtras and what are their use?

Does any one know how to use the following classes in ParallelExtensionExtras and what they are used for?

IOCompletionPortTaskScheduler.cs
IOTaskScheduler.cs
like image 727
Abdul Khaliq Avatar asked Sep 19 '25 05:09

Abdul Khaliq


1 Answers

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 the QueueUserWorkItem method as well as by the default TaskScheduler, while the latter is targeted by the UnsafeQueueNativeOverlapped method, and is frequently used for work in Windows Communication Foundation and Windows Workflow Foundation. The IOTaskScheduler scheduler in the IOTaskScheduler.cs file runs tasks on this I/O thread pool via the UnsafeQueueNativeOverlapped method.

From here: ParallelExtensionsExtras Tour – #7 – Additional TaskSchedulers

like image 53
Cody Gray Avatar answered Sep 21 '25 20:09

Cody Gray