Skip to content

Precisely time a group of philosophers on when to pick up forks and eat spaghetti without dying from hunger

Notifications You must be signed in to change notification settings

anagmrebelo/42_philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

philosophers

Project description:

Eat, Sleep, Think, 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. Got familiarized with concepts of threading and forking a proces, mutexes and semaphores

Grade

100%

Usage

make
./a.out will take as parameters number_of_philosophers time_to_die time_to_eat time_to_sleep number_of_times_each_philosopher_must_eat
[number_of_times_each_philosopher_must_eat] is optional

About

Precisely time a group of philosophers on when to pick up forks and eat spaghetti without dying from hunger

Topics

Resources

Stars

Watchers

Forks