Skip to content

A simple simulation of Philosophers trying to eat pasta LMAO

License

Notifications You must be signed in to change notification settings

nschumac/42cursus03-Philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42cursus03-Philosophers

Description:

The goal of this project is to create a simulation, in which you try to keep "philosophers" alive. They have a strict pattern that they follow -> eat, sleep, think, eat, ... <-. In the simulation the philosophers are sitting at a round table and are sharing forks. This means that two philosophers next to each other can never eat at the same time (in the code this is done through the use of mutex locks).

Usage:

MacOs Linux only

  • git clone https://github.com/nschumac/42cursus03-Philosophers.git
  • run make in cloned repository
  • execute philo e.g ./philo 4 420 200 200

syntax: ./philo [amount of philosophers] [death time] [eat time] [sleep time] "[amount to eat]"

Subject:

philosphers subject

Result:

  • Status: Completed
  • Result: 100%

Contact:

About

A simple simulation of Philosophers trying to eat pasta LMAO

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published