|
|
Subscribe / Log in / New account

Lockless patterns: full memory barriers

Lockless patterns: full memory barriers

Posted Mar 7, 2021 16:10 UTC (Sun) by jcm (subscriber, #18262)
Parent article: Lockless patterns: full memory barriers

Btw, in the SB example, it's not that the store buffer is forwarding locally, "which would return zero", it's that each is writing into its local store buffer while reading the other variable from the initial state. The SB allows the stores to be delayed in terms of observation by other processors relative to the local one.


to post comments

Lockless patterns: full memory barriers

Posted Mar 7, 2021 20:56 UTC (Sun) by pbonzini (subscriber, #60935) [Link] (1 responses)

Read the paragraph again, it mentions both scenarios. :)

Lockless patterns: full memory barriers

Posted Mar 8, 2021 20:56 UTC (Mon) by jcm (subscriber, #18262) [Link]

Yea, I did after. I agree, thanks :)


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds