To compile and run:
-Download the prod_con.c file -Execute the following command: gcc -O3 -o prod_con.exe prod-cons.c -lpthread -Execute the following command: ./prod_con.exe
For the math.h problem at the thread_join.c file compile with the following: gcc -O3 -o prod_con.exe prod-cons.c -lpthread -lm