Skip to content

A small simulation of the famous problem of the dining philosophers

Notifications You must be signed in to change notification settings

marcosviudes/Philosopher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Philosopher

A small simulation of the famous problem of the dining philosophers programed in C

How to run it

  • Use make to generate the binary philo
  • Run ./philo [NumOfPhilos] [TimeToDead] [TimeToEat] [TimeToSleep]

Example: ./philo 3 310 100 100 Example: ./philo 2 410 200 200 5 Optional must eat arg

Makefile

clean: remove objects

fclean: remove binaries

re: generate all again

About

A small simulation of the famous problem of the dining philosophers

Topics

Resources

Stars

Watchers

Forks