Skip to content

JBar02/EatingPhilosophersProblem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EatingPhilosophersProblem

Run the executable: ./philosophers

Input the number of philosophers: n

Philosopher 0 is thinking

Philosopher 1 is thinking

Philosopher 0 picked up left fork

Philosopher 0 picked up right fork

Philosopher 0 is eating

About

this code is an exemple of eating philosophers problem. This issue was invented by Edsger Dijkstra, and it is an example of multi threading program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors