Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rolandtritsch/scala-dining-philosophers

Scala Simulation of the Dining Philosophers Problem
https://github.com/rolandtritsch/scala-dining-philosophers

Last synced: about 19 hours ago
JSON representation

Scala Simulation of the Dining Philosophers Problem

Awesome Lists containing this project

README

        

# Simulation of the Dining Philosophers Problem

As always you need git and sbt (at least 0.12.*) installed.

You can then simply clone the repo and run `sbt "run 5 5 3 30"` to simulate 5 philosophers, thinking for 5 secs, eating for 3 secs and running the simulation for 30 secs.

The repo also contains State Transition Diagrams to illustrate/document what is going on. They are build with plantUML. Just go the `uml` directory and run `build.sh`. The `png` files will be in the `target` directory.