/readers-writers-solution-in-c

First readers writers solution using semaphore and mutex in c

Primary LanguageC

Readers Writers Problem Solution Using Semaphore and Mutex

The first readers writers problem is one of the classical examples of synchronization. This program simulates a readers writers problem in C

Blog : https://shivammitra.com/reader-writer-problem-in-c

Compiling the program: gcc reader-writer.c -pthread

Running the program: ./a.out

Output

output