I have to write a program that solves the producer/consumer problem using shared memory, cicular buffer, mutex's and semaphores.
My problem is that while the course teaches us the theory behind these structures I have been given nothing on how to implement these in C.
I have been looking at a number of different places on the web trying to wrap my head around how to use these in C but I am still having major issues.
I am asking if anyone could point me to some reference materials that clearly and simply outline how to create shared memory, semaphores, mutex's, circular buffers etc. preferably using pthreads