|
|
Log in / Subscribe / Register

An introduction to lockless algorithms

An introduction to lockless algorithms

Posted Oct 11, 2022 4:50 UTC (Tue) by dafnaf (guest, #158251)
Parent article: An introduction to lockless algorithms

I didn't understand the second example with the smp_r/wmb. Can't there be a case that 'thread 2' starts and finishes before 'thread 1' ? or the case where 'thread 1' only do "a.x=1" and then 'thread 2' executes until the end?


to post comments


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