/philosophers

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

Primary LanguageCGNU General Public License v3.0GPL-3.0

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