May 2019
Intermediate to advanced
504 pages
11h 50m
English
Thread-safe collections are an invaluable member of the asynchronous toolset in .NET Core, just like they were in the full .NET Framework. Using blocking collections, concurrent models can be implemented to provide a common ground for asynchronous tasks on multiple threads. The most prominent of these models is, without a doubt, the producer/consumer pattern implementation. In this paradigm, a method executing on a parallel thread/task will produce the data items that will be consumed by another parallel operation, called the consumer, until a bounding limit is reached or production is completed. The two methods will be sharing the same blocking collection, where the blocking collection ...
Read now
Unlock full access