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

Two threads bench update #121

Merged
merged 2 commits into from
May 2, 2024
Merged

Conversation

mgeier
Copy link
Owner

@mgeier mgeier commented May 1, 2024

It turns out that the barrier in the contended case is not necessary, since we can just spin instead.

And to get the two threads in the uncontended case to start running at close to the same time (instead of one being delayed because it had to wake up first), we are creating a third thread which triggers the other two threads (and both have to wake up).

@mgeier mgeier merged commit 0976460 into mgeier:main May 2, 2024
9 checks passed
@mgeier mgeier deleted the two-threads-bench-update branch May 2, 2024 17:37
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.

1 participant