Implementation of Reader writers problem in C using monitors. (pthread library required)
"gcc Readers-writers.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.