作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
MSDN 定义 ConcurrentExclusiveSchedulerPair
maxItemsPerTask
作为
maxItemsPerTask
Type: System.Int32
The maximum number of tasks to process for each underlying scheduled task used by the pair.https://msdn.microsoft.com/en-us/library/hh194750(v=vs.110).aspx.
5
),实际会发生什么?
最佳答案
ConcurrentExclusiveSchedulerPair
将允许 creation of up to maxConcurrencyLevel
concurrent tasks (或单个独占),每个处理最多 maxItemsPerTask
任务,然后完成,或如引用来源所解释的那样:
/// <summary>The maximum number of tasks we can process before recycling our runner tasks.</summary>
private readonly int m_maxItemsPerTask;
maxItemsPerTask
if there's an exclusive task waiting to be processed但反之亦然
maxItemsPerTask
可用于限制独占任务以防止并发任务饿死。
关于.net - ConcurrentExclusiveSchedulerPair 中 maxItemsPerTask 的作用是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29244659/
MSDN 定义 ConcurrentExclusiveSchedulerPair maxItemsPerTask作为 maxItemsPerTask Type: System.Int32 The ma
我是一名优秀的程序员,十分优秀!