producer consumer problem using mutexes, condition variables or semaphores

Can anyone please tell me how to write a program for producer consumer problem in C using
1) mutexes
2) condition Variables and mutexes
3) semaphores
[162 byte] By [pappupehlwan] at [2007-11-20 1:38:12]
# 1 Re: producer consumer problem using mutexes, condition variables or semaphores
Well any decent operating systems will tell you that. I prefer Andrew S. Tannenbaum's.
kumaresh_ana at 2007-11-9 13:59:02 >
# 2 Re: producer consumer problem using mutexes, condition variables or semaphores
http://www.dev-archive.com/forum/showthread.php?t=366302
MrViggy at 2007-11-9 14:00:02 >