Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 712 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 712 Bytes

Philosophers

I never thought philosophy would be so deadly




Summary

In this project, you will learn the basics of threading a process. You will see how to create threads and you will discover mutexes.




Install

$ make (all)
  • Mandatory in directory   philo/
  • Bonus in directory   philo_bonus/


Usage

Arguments must be natural number.

Mandatory

$ ./philo <number_of_philosophers> <time_to_die> <time_to_eat> <time_to_sleep> [number_of_times_each_philosopher_must_eat]

Bonus

$ ./philo_bonus <number_of_philosophers> <time_to_die> <time_to_eat> <time_to_sleep> [number_of_times_each_philosopher_must_eat]