RFR: CODETOOLS-7903021: jcstress: Dining Philosophers problem sample [v4]
Michael Mirwaldt
github.com+6693355+mmirwaldt at openjdk.java.net
Fri Oct 1 23:07:07 UTC 2021
> This s my initial draft fo a sample testing solutions for the dining philosophers problem:
> - Wikipedia explains it on https://en.wikipedia.org/wiki/Dining_philosophers_problem
> - It runs within 13min on my machine.
> - It includes a short comment about the motivation for that sample and
> a reference link to the wikipedia article about the dining philosophers problem.
> - It offers 3 different solutions: with monitors, with reentrant locks and with semaphores
Michael Mirwaldt has updated the pull request incrementally with one additional commit since the last revision:
improved comment and ResourceHierarchy solution in ClassicProblem_01_DiningPhilosophers
-------------
Changes:
- all: https://git.openjdk.java.net/jcstress/pull/93/files
- new: https://git.openjdk.java.net/jcstress/pull/93/files/522f583c..f437bedc
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jcstress&pr=93&range=03
- incr: https://webrevs.openjdk.java.net/?repo=jcstress&pr=93&range=02-03
Stats: 6 lines in 1 file changed: 0 ins; 0 del; 6 mod
Patch: https://git.openjdk.java.net/jcstress/pull/93.diff
Fetch: git fetch https://git.openjdk.java.net/jcstress pull/93/head:pull/93
PR: https://git.openjdk.java.net/jcstress/pull/93
More information about the jcstress-dev
mailing list