c# - Parallel ForEach, and Queues -


is possible have parallel each loop process items in queue such it:

  1. only removes items being processed
  2. pauses until new items added queue

edit: in regards system.threading.tasks' parallel.foreach functionality

subscribe queue using reactive extensions , execute each item in new task. won't have block or wait new item since pushed on subscribe lambda , execution/processing parallel.

http://rxwiki.wikidot.com/101samples


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -