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

Package docs for lockset with an example. #8

Open
wants to merge 1 commit into
base: bob_lock_queue
Choose a base branch
from

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