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