git clone [email protected]:LeRandomJess/philosophers.git
cd philo
make
3º - Run the program with parameters [number_of_philosophers] [time_to_starve] [time_to_eat] [time_to_sleep] [number_of_times_to_eat]
Time arguments are in miliseconds; [number_of_times_to_eat] is an optional parameter; [number_of_philosophers] shouldn't exceed 200; [time_to_starve] [time_to_eat] and [time_to_sleep] shouldn't be lower than 60;
./philo [number_of_philosophers] [time_to_starve] [time_to_eat] [time_to_sleep] [number_of_times_to_eat]
or
./philo [number_of_philosophers] [time_to_starve] [time_to_eat] [time_to_sleep]
make
- Compile all files.
make all
- Compile all files.
make clean
- Delete all .o (object files) files.
make fclean
- Delete all .o (object files) and .a (executable) files.
make re
- Use rules fclean
+ all
.