...
首页> 外文期刊>MSDN Magazine >Round-robin Access To The Threadpool
【24h】

Round-robin Access To The Threadpool

机译:循环访问线程池

获取原文
获取原文并翻译 | 示例
           

摘要

I'm currently using the Microsoft .NET Framework Thread-Pool, and i've run into a situation I'm not sure how to solve. I start off with a large batch of work items that get queued, and then a second (smaller batch) arrives after the first batch starts its processing. Initially, some of the work in the large batch will be dispatched to all of the worker threads in the ThreadPooi. However, when the second batch arrives, I want the distribution to be fair, with each batch getting serviced equally, rather than the first batch getting full attention due to it arriving first. When one of the batches finishes, I'd like whichever one still needs processing to then get the attention of all the worker threads. Is there anything I can do to layer such batching functionality on top of the ThreadPooi?
机译:我目前正在使用Microsoft .NET Framework线程池,但遇到了不确定的解决方法。我从排队的一大批工作项开始,然后在第一批工作开始处理后再到达第二(小批)工作项。最初,大批处理中的某些工作将分派给ThreadPooi中的所有工作线程。但是,当第二批产品到达时,我希望分配是公平的,每批产品得到同等的服务,而不是第一批产品由于第一批到达而得到了充分的关注。当其中一批完成时,我希望仍然需要处理的任何一批都引起所有工作线程的注意。我可以做些什么来在ThreadPooi的基础上分层这种批处理功能吗?

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号