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

Achieve lock-freeness #9

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Achieve lock-freeness #9

wants to merge 5 commits into from

Conversation

Saalvage
Copy link
Owner

TODO: There is still the possibility of a lock when a write bit/block is claimed but the thread falls dormant before writing to it. All readers will continuously try to read from this block without being able to move the window.
The remedy seems to be giving the pop operation the responsibility of resolving spurious block claims / empty blocks in general.

It's important to note that this necessitates sealing the block (by increasing its epoch).
Originally it was thought that only the push operation CAN resolve spurious block claims, but this assumption seems to be false if we simply seal the block instead of solely resetting the bit.
Did I simply fail to consider this or am I missing something now?

@Saalvage Saalvage linked an issue Mar 15, 2025 that may be closed by this pull request
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.

Lock-free BBQ variant
1 participant