An implementation of the dining philosophers problem in Elixir.
Elixir
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
README.md
mix.exs

README.md

To read more about this implementation please visit Elixir, Erlang, and the Dining Philosophers on Atomic Spin

Instructions

  • mix start.deadlock
  • mix start.starving
  • mix start.nolock

A step by step representation of philosopher actions will be output, followed by a summary of the number of times each philosopher has eaten.

**** Marx has eaten 46

**** Kant has eaten 80

**** Spinoza has eaten 62

**** Russell has eaten 105

**** Aristotle has eaten 38