Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 700 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 700 Bytes

42-philosophers

WhatsApp Image 2023-08-10 at 5 24 31 PM

This is a 42 project. Philosophers dinner problem in C. Introduction to threads, mutexes, processes, semaphores and Inter Process Communication (IPC)

1 - First things first, you need to clone this repository:

git clone 

2 - Go to Philosophers and run make

cd 42-philosophers/
make

3 - Run your new dining philosopher simulation program with the parameters

./philo <nbr_of_philos> <time_to_die> <time_to_eat> <time_to_sleep> [nbr_of_times_each_philo_must_eat]

and that's basically it! :)