Skip to content

misleading ending in dining philosophers problem #30515

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

Closed
ghost opened this issue Dec 21, 2015 · 2 comments
Closed

misleading ending in dining philosophers problem #30515

ghost opened this issue Dec 21, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 21, 2015

in the end of dining philosophers sample there is mentioned that Only two philosophers can eat at any one time, and so you’ll get some output like this:.

But it doesn't work for me this way. Only one philosopher can eat at one time in the provided solution.

In the beginning everyone takes left fork. Then after 150ms only Emma Goldman can take right fork (because she is sitting next to Foucault). After Emma finished eating Karl Mark can start because his right fork is available and so on.

@durka
Copy link
Contributor

durka commented Dec 22, 2015

duplicate of #30471

@steveklabnik
Copy link
Member

Yes, closing as a duplicate, thanks!

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

2 participants