Skip to content

Conversation

MattWhelan
Copy link

@MattWhelan MattWhelan commented Nov 12, 2024

Test for the example code.


This change is Reviewable

A test for the example code.
@MattWhelan MattWhelan requested a review from bobvawter November 12, 2024 00:27
@MattWhelan
Copy link
Author

It's worth noting that the dining philosophers test executes in-order, even when a delay is introduced in the dine function. So Alice and Carol aren't able to execute in parallel, despite not contending for resources.

@bobvawter
Copy link
Contributor

This would be excellent as a testable example: https://go.dev/blog/examples

A local copy of pkg.go.dev can be launched with the following:

go install golang.org/x/pkgsite/cmd/pkgsite@latest
~/go/bin/pkgsite -http :6060

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

Successfully merging this pull request may close these issues.

2 participants