Skip to content

lolalebreton/philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Philosophers

General info

Eat, Sleep, Spaghetti, repeat. This project is about learning how threads work by precisely timing a group of philosophers on when to pick up forks and eat spaghetti without dying from hunger.

Setup

To compile the mandatory part (use of threads) run

$ make

For the bonus (use of forked processes) run

$ make bonus

Philo executable takes the following arguments

$ ./philo number_of_philosophers time_to_die time_to_eat time_to_sleep [number_of_times_each_philosopher_must_eat]

NB

This project is part of the School 42 curriculum. It has to be written entirely in C and comply with several "norme" rules, including for the code writing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors