Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 697 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 697 Bytes

Philosophers

This is my solution to the dining philosophers problem from 42.
Subject: en.subject.pdf

image

Usage

  • Clone the repo: git clone https://github.com/TheoGuerin64/Philosophers.git0.0
  • Go to the basic or bonus folder: cd philo|philo_bonus
  • Build: make
  • Run the executable:
    ./philo|philo_bonus <number of philosophers> <time to die> <time to eat> <time to sleep> [number of times each philosopher must eat]