Skip to content
First readers writers solution using semaphore and mutex in c
C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
output.png
reader-writer.c

README.md

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

You can’t perform that action at this time.