gpt4 book ai didi

c# - 有谁知道如何在 ParallelExtensionExtras 中使用 IOCompletionPortTaskScheduler 和 IOTaskScheduler 以及它们的用途是什么?

转载 作者:行者123 更新时间:2023-11-30 15:46:05 25 4
gpt4 key购买 nike

有人知道如何使用 ParallelExtensionExtras 中的以下类以及它们的用途吗?

IOCompletionPortTaskScheduler.cs
IOTaskScheduler.cs

最佳答案

IOTaskScheduler

While we often refer to “the” .NETthread pool, the ThreadPoolabstraction in .NET is actually builton top of two pools, one referred toas the worker pool and one referred toas the I/O pool. The former is what’stargeted by the QueueUserWorkItemmethod as well as by the defaultTaskScheduler, while the latter istargeted by theUnsafeQueueNativeOverlapped method,and is frequently used for work inWindows Communication Foundation andWindows Workflow Foundation. TheIOTaskScheduler scheduler in theIOTaskScheduler.cs file runs tasks onthis I/O thread pool via theUnsafeQueueNativeOverlapped method.

来自这里:ParallelExtensionsExtras Tour – #7 – Additional TaskSchedulers

关于c# - 有谁知道如何在 ParallelExtensionExtras 中使用 IOCompletionPortTaskScheduler 和 IOTaskScheduler 以及它们的用途是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4568741/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com