RFR: CODETOOLS-7903021: jcstress: Dining Philosophers problem sample [v5]

Michael Mirwaldt github.com+6693355+mmirwaldt at openjdk.java.net
Mon Oct 11 16:52:44 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 17 additional commits since the last revision:

 - Merge branch 'openjdk:master' into ClassicProblem_01_DiningPhilosophers
 - improved comment and ResourceHierarchy solution in ClassicProblem_01_DiningPhilosophers
 - added OneDinerFewer solution to ClassicProblem_01_DiningPhilosophers
 - improved ResourceHierarchy solution and added Arbitrator solution to ClassicProblem_01_DiningPhilosophers
 - reduced the ClassicProblem_01_DiningPhilosophers to the resource hierarchy solution
 - added initial draft of ClassicProblem_01_DiningPhilosophers for a PR
 - Merge branch 'openjdk:master' into master
 - Merge branch 'openjdk:master' into master
 - Merge branch 'openjdk:master' into master
 - Merge remote-tracking branch 'origin/master'
 - ... and 7 more: https://git.openjdk.java.net/jcstress/compare/8a2c8eb4...d57f8eb1

-------------

Changes:
  - all: https://git.openjdk.java.net/jcstress/pull/93/files
  - new: https://git.openjdk.java.net/jcstress/pull/93/files/f437bedc..d57f8eb1

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jcstress&pr=93&range=04
 - incr: https://webrevs.openjdk.java.net/?repo=jcstress&pr=93&range=03-04

  Stats: 1187 lines in 15 files changed: 1151 ins; 24 del; 12 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