Create lab3.c

Operating Systems, lab3, producer consumer problem, using pthreads / semaphores to protect critical sections preventing race conditions