/Producer-consumer-problem-in-C

Implementation of producer and consumer problem in C. (pthread.h library required)

Primary LanguageCMIT LicenseMIT

Producer-consumer-problem-in-C

Implementation of producer and consumer problem in C. (pthread.h library required)

How to run:

"gcc producer-consumer.c -lpthread"

Here we give "-lpthread" flag for including the pthread.h library while compiling.

Note:

  1. For runnig the above C code, pthread.h library required.(gcc is recommended)
  2. Borland compiler does not supports the pthread.h library.