Skip to content

Edu2metros/Philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHILOSOPHERS - @42SP

Sleep, eat and think!

Nota: 125/100 ✔️

What is the Philosophers?

Philosophers is a project that aims to solve the dining philosophers problem using threads and mutexes. The dining philosophers problem is a classic synchronization problem that models a dining room with five philosophers sitting around a circular table doing one of three things: eating, thinking, or sleeping. The philosophers must never be starving, and they must never be deadlocked.

How to use?

  1. Clone the repository
  2. Run make to compile the project
  3. Run ./philo with the following arguments:
    • Number of philosophers
    • Time to die
    • Time to eat
    • Time to sleep
    • Number of times each philosopher must eat (optional)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages