Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A criticism of the Dining Philosopher sample model #381

Open
ToonTalk opened this issue Jan 19, 2019 · 0 comments
Open

A criticism of the Dining Philosopher sample model #381

ToonTalk opened this issue Jan 19, 2019 · 0 comments

Comments

@ToonTalk
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant