Skip to content

This is a 42 project. Philosophers dinner problem in C.

Notifications You must be signed in to change notification settings

richardmarcela/42-philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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