Discussion Section for October 25, 2012: Conditional Variables!


In Discussion Section

In ds7, you will solve a produce consumer problem using a bounded queue. A bounded queue has a bound on the number of elements you can queue at any time. The basic queue has been implemented for you in queue.c and queue.h . The file prodcons.c has the producer consumer implemented where the producer sends characters A - Z using the bounded queue. This part is also implemented.

Your discussion section leader will help you implement the enqueue and dequeue function for the Bounded Queue using conditional variable and the functions implemented in simple queue.

Compiling and Running

To compile and run your shell, run the following commands from a Terminal on a Linux machine:

$ make
$ ./prodcons