Skip to content

suiramdev/42-philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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_philosophers> <time_to_die> <time_to_eat> <time_to_eat> [number_of_times_each_philosopher_must_eat]

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors