它应该是非常自然的,我想知道是否有从TPL DataFlow库的优先级缓冲区的实现?

有帮助吗?

解决方案

Seems the best way to achieve this is to use a specialised Task Scheduler, rather than implementing your own BufferBlock. There are many variety of them one can find out in net. For instance, check QueuedTaskScheduler in ParallelExtensions Library

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top