Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)
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)