models icon indicating copy to clipboard operation
models copied to clipboard

A criticism of the Dining Philosopher sample model

Open ToonTalk opened this issue 7 years ago • 0 comments

The go command includes

ask one-of philosophers [ update ]

which kind of defeats the original purpose of this problem (concurrent deadlock) - https://en.wikipedia.org/wiki/Dining_philosophers_problem#Problems

Removing the one-of is still not a good illustration of the problem since a philosopher in the same tick can pick up two forks.

I recommend updating the Info tab with a discussion of this issue. Or implementing a concurrent version as a new switch in the interface so the current behaviour remains unless someone selects concurrency.

ToonTalk avatar Jan 19 '19 06:01 ToonTalk