Skip to content

Java repository with the classic problem of the "Dining Philosophers," a synchronization challenge that explores how philosophers can share forks and satisfy their hunger in a coordinated manner at a round table.

Notifications You must be signed in to change notification settings

paulo-ssantos/java-philosophers-dinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Philosophers' Dinner in JAVA

The Philosophers' Dinner was proposed by Dijkstra in 1965 as a synchronization problem. Since then, all algorithms proposed as synchronization solutions have either been related to or tested against the Philosophers' Dinner problem.

Definition of the Philosophers' Dinner Problem

Five philosophers are seated at a round table for dinner. Each philosopher has a plate of spaghetti in front of them. Each plate has a fork for picking up the spaghetti. The spaghetti is very slippery, and for a philosopher to eat, they will need to use two forks.

Source: The Dining Philosophers Problem

Folder Structure

The workspace contains two folders by default, where:

  • src: the folder to maintain sources
  • lib: the folder to maintain dependencies

About

Java repository with the classic problem of the "Dining Philosophers," a synchronization challenge that explores how philosophers can share forks and satisfy their hunger in a coordinated manner at a round table.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages