-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f19b33
commit e0eab49
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
# Classical-Synchronization-Problems | ||
CSN-232 Operating Systems | ||
The folders contain the solutions to the process synchronization problems which are Producer-Consumer problem, Readers-Writers problem, Cigarette-Smokers problem, Sleeping-Barbers problem and the Dining-Philosophers problem. The code is implemented using my custom built Semaphore library named "my_semaphore.h". Along with that, I have also used Pthreads inbuilt library for to create the crcumstances to apply process synchronization. | ||
The folders contain the solutions to the process synchronization problems which are Producer-Consumer problem, Readers-Writers problem, Cigarette-Smokers problem, Sleeping-Barbers problem and the Dining-Philosophers problem. The code is implemented using my custom built Semaphore library named "my_semaphore.h". Along with that, I have also used Pthreads inbuilt library for to create the circumstances to apply process synchronization. | ||
To run the code on the terminal, | ||
First compile the code file using the command :- gcc Dining_philosopher.c -pthread | ||
for a file named Dining_philosopher.c | ||
Then use the command :- ./a.out to execute the program. | ||
First compile the code file using the command :- | ||
gcc Dining_philosopher.c -pthread | ||
for a file named Dining_philosopher.c | ||
Then use the command :- | ||
./a.out | ||
to execute the program. |