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

https://github.com/suiramdev/42-philosophers

📓 Philosophers is a multi-threaded project that simulates the dining philosophers problem.
https://github.com/suiramdev/42-philosophers

Last synced: 8 days ago
JSON representation

📓 Philosophers is a multi-threaded project that simulates the dining philosophers problem.

Awesome Lists containing this project

README

          

> **WARNING** The "philosophers" project follows the norms set by the school 42, which some people may not agree with. Some users may feel that the structure of the project does not look aesthetically pleasing or intuitive due to the constraints imposed by these norms. However, it is important to remember that the purpose of the project is to teach students certain programming concepts and techniques, and the strict adherence to the norms set by the school is necessary to ensure that students are able to learn these concepts effectively.

# philosophers

Philosophers is a multi-threaded project that simulates the dining philosophers problem.

## How to run

Compile the solution with the Makefile provided, using the command `make`. This will create an executable (for linux), which you can run in the terminal, followed by the data file you want to display.

```
make && ./philo [number_of_times_each_philosopher_must_eat]
```