/Reader-writers-problem-in-C

Implementation of Reader writers problem in C using monitors. (pthread library required)

Primary LanguageCMIT LicenseMIT

Reader-writers-problem-in-C

Implementation of Reader writers problem in C using monitors. (pthread library required)

How to run:

"gcc Readers-writers.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.