8000 Use cases for weak vs strong `compare_exchange` · Issue #4 · mrkline/concurrency-primer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Use cases for weak vs strong compare_exchange #4
Open
@david-bakin

Description

@david-bakin

(This paper is excellent; but I do have a couple of suggestions. Instead of commenting on your blog I thought I'd "open an issue" or two. But well done! I especially liked the review of the different memory orderings, the discussion of section 11 Hardware convergence, and the oft-ignored issue of false sharing.)

Section 8.1 Spurious LL/SC failures - it would be great to have a motivating example for compare_exchange_weak vs. compare_exchange_strong - a use case for weak vs. strong in practice. Or two use cases: one where weak is sufficient and one where strong is required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0