Using the BlockingCollection for thread-safe producer-consumer scenarios in .NET Part 5
September 15, 2015 Leave a comment
In the previous post we finished the basics of building producer-consumer scenarios with BlockingCollection in .NET. In particular we saw how to send a signal to the consumer that the producers have completed their tasks and no more items will be inserted into the work queue.
In this final post I just want to draw your attention to a couple of other fine-tuning methods in the BlockingCollection object.