Skip to content

boxsome/DiningPhilosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Just an exercise in multi-threading in Java

Dining Philosophers Problem

N number of silent philosophers sit at a round table with bowls of spaghetti. Forks are placed between each pair of adjacent philosophers.

Philosophers have to alternate between thinking and eating.

Constraints of the problem: -philosophers can only eat when they have a fork on each hand -only one philosopher at most can be holding a given fork at any given time -when philosopher's aren't eating, they're thinking

Other things to consider: -starvation -fairness

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published