possibility of starvation of Dining Philosophers

前端 未结 2 842
野的像风
野的像风 2021-02-02 17:01

I need to check my algorithm of solving the dining philosopher problem if it guarantees that all of the following are satisfied or not:

  • No possibility of deadlock.
2条回答
  •  旧巷少年郎
    2021-02-02 17:43

    I haven't used this in many years but there is a tool you can use to verify your algorithm. You will have to write you algorithm in Promela.

    http://spinroot.com/spin/whatispin.html

    http://en.wikipedia.org/wiki/Promela

提交回复
热议问题