Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rolandtritsch/scala-dining-philosophers
- Owner: rolandtritsch
- Created: 2013-09-28T07:25:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-08T15:16:28.000Z (over 11 years ago)
- Last Synced: 2024-04-16T12:19:40.869Z (10 months ago)
- Language: Scala
- Size: 1.91 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.