December 2019
Intermediate to advanced
346 pages
9h 8m
English
Concurrent queues can be used to solve producer/consumer scenarios in application programming. In the producer/consumer programming pattern, one or more threads produce data and one or more threads consume data. This leads to race conditions among threads. We can solve this problem via the following approaches:
Based on which thread (producer/consumer) has the responsibility to add/consume data, the producer-consumer pattern can be classified into the following:
Let's try to solve ...
Read now
Unlock full access