YPLEX
threading
consumer producer problems

this is a set of programs that solve various forms of the consumer producer problems that highlight some classical concurrency issues, such as synchronization and efficient waiting on resources.

the [first] solution addresses the elementary case of one consumer, one producer, and an unbounded queue.

the [second] solution addresses the slightly more complicated case of one producer, multiple consumers, and an unbounded queue.

the [third] solution addresses the case of one producer, multiple consumers, and an bounded queue using a thread_group.

the [fourth] solution addresses the case of multiple consumers, multiple producers, and a bounded queue.

dependencies
note - these examples use components of the [generic] library, namely: gensyncqueue.h
genthread.h