Test your implementation of a concurrent buffer with multiple "producer" and multiple "consumer" threads.
For your testing, use the main program available on agate in ~cs520/public/lab10/countChars2.c. There is also a Makefile in this directory that shows how to compile this program with your code for the concurrent buffer facility.
Use the valgrind memcheck facility to validate that you properly free all allocated memory blocks:
Also run the program using the valgrind helgrind facility to check for threading errors:
Points will be awarded in the following manner:
Turn in this laboratory by typing:
% ~cs520/bin/submit lab10 concurrentBuffer.c
Submissions can be checked by typing:
% ~cs520/bin/scheck lab10
Remember that there are no late submissions of labs. Submit what you have prior to 12noon on Sunday April 15. Be careful: one minute late is late.
Comments and questions should be directed to pjh@cs.unh.edu