CS520
Fall 2016
Laboratory 9
Friday November 4
The lab must be submitted prior to noon on Sunday November 6.


Build a producer-consumer queue that supports at least a single producer and a single consumer.

Test test1 can be used to test your allocator. Also do appropriate unit testing, such as checking that queue handles are validated, that a closed queue performs as required, etc.

Be sure to use valgrind to check that all malloc-ed memory is freed.

To turn in this laboratory, type:

% ~cs520/bin/submit lab9 pcQueue.c

Submissions can be checked by typing:

% ~cs520/bin/scheck lab9

Remember that there are no late submissions of labs. Submit what you have prior to noon on Sunday November 6.


Last modified on October 29, 2016.

Comments and questions should be directed to pjh@cs.unh.edu