Implementing the procducer-consumer with .NET 4.0 new

Posted by bitbonk on Stack Overflow See other posts from Stack Overflow or by bitbonk
Published on 2010-06-03T13:02:20Z Indexed on 2010/06/03 13:04 UTC
Read the original article Hit count: 268

With alle the new paralell programming features in .NET 4.0, what would be a a simple and fast way to implement the producer-consumer pattern (where at least one thread is producing and enqueuing task items and one other thread executes (dequeues) these tasks). Can we benfit from all these new APIs? What is your preferred implementation of this pattern?

© Stack Overflow or respective owner

Related posts about design-patterns

Related posts about .net-4.0