Skip to content

rrangwan/8-42_philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

It is solving the Dining Philosophers problem.

The program takes 5 to 6 parameters: ./philo/$ ./philo ${No. of philosophers} ${Time they can stay alive before eating} ${Time required to eat} ${Time required to sleep} ${(optional) No. of times each philosopher has to eat to stop simulation}

example: $ ./philo 3 200 100 100 or $ ./philo 2 200 100 100 4

Releases

No releases published

Packages

No packages published