Skip to content

A simulation project dealing with threads, mutexes and synchronization - from the famous dining philosopher's problem.

License

Notifications You must be signed in to change notification settings

wasied/philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Philosophers

A simulation project dealing with threads and mutexes for School42

Installation

  • Clone the repository
  • Use the terminal command make to compile everything

Usage

Philo is taking 4 or 5 arguments:
./philo {philosophers_count} {time_to_die} {time_to_eat} {time_to_sleep} [eat_min_count]

Examples

Once compiled, you can try the program by using this command:
./philo 4 800 200 200 3

About

A simulation project dealing with threads, mutexes and synchronization - from the famous dining philosopher's problem.

Topics

Resources

License

Stars

Watchers

Forks