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

https://github.com/bebalix/philosopher

This project introduce to the concurrent programming with threads, mutexes and processes with the dining philosophers problem
https://github.com/bebalix/philosopher

42project concurrency langage-c mutex process thread

Last synced: 8 months ago
JSON representation

This project introduce to the concurrent programming with threads, mutexes and processes with the dining philosophers problem

Awesome Lists containing this project

README

          

# philosopher

Program who represente the dining philosophers problem with thread and mutex.

## How to launch the program

1. To compile the program :

```sh
$ make
```
2. To start the program :

```sh
$ ./philo [number_of_philosophers] [time_to_die] [time_to_eat] [time_to_sleep] [number_of_times_each_philosopher_must_eat]
```
3. Remove all :

```sh
$ make fclean
```