Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 433 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 433 Bytes

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