Skip to content

Latest commit

 

History

History

philosopher

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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]