pthread Producer/Consumer example built in C