Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/archer-01/philosophers
Implementation of the Dining Philosophers problem in C
https://github.com/archer-01/philosophers
c dining-philosophers-problem multiprocessing multithreading mutex-synchronisation semaphores synchronization unix
Last synced: about 1 month ago
JSON representation
Implementation of the Dining Philosophers problem in C
- Host: GitHub
- URL: https://github.com/archer-01/philosophers
- Owner: Archer-01
- Created: 2022-03-20T08:15:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-15T14:00:10.000Z (almost 3 years ago)
- Last Synced: 2024-11-05T22:16:36.303Z (3 months ago)
- Topics: c, dining-philosophers-problem, multiprocessing, multithreading, mutex-synchronisation, semaphores, synchronization, unix
- Language: C
- Homepage:
- Size: 537 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Philosophers
Philosophers is an implementation of the ***Dining Philosophers*** synchronization problem via multi-threading (Using the pthread API)
## Philosophers (threads activity)
## Main thread activity
![Philosopher reaper (main thread) activity](doc/philo-reaper-activity.png)## Usage
```sh
make
./philo philo_num death_time eat_time sleep_time [min_eat_count]
```[![forthebadge](https://forthebadge.com/images/badges/made-with-c.svg)](https://forthebadge.com)