A producers-consumers algorithm using pthreads and a FIFO queue.
In order to test the implementation locally on your machine, use the files located in the home directory. Follow the commands in the order given below:
make all
./prod-cons <p> <q>
Replace the values p and q with the producer and consumer threads you want to use respectively. For example,
./prod-cons 2 3
will run the program with 2 producer threads and 3 consumer threads.
Refference: Andrae Muys, A solution to the producer consumer problem using pthreads, 18 September 1997
Repository for Aristotle Univerisity of Thessaloniki ECE Deparment, Real Time Embedded Systems 1st project