0
comment
comment
on 9/11/2012 5:54 AM
The producer-consumer pattern allows a producer thread to generate data (e.g loaded from disk or read from a web site) and put in a queue, concurrently with a thread that consumes the data from the queue. A typical application of this is the processing of multiple disk files. When done in a single threaded, sequential [...]