Implementation of producer and consumer problem in C. (pthread.h library required)
"gcc producer-consumer.c -lpthread"
Here we give "-lpthread" flag for including the pthread.h library while compiling.
- For runnig the above C code, pthread.h library required.(gcc is recommended)
- Borland compiler does not supports the pthread.h library.