3 ms·
Just because you're using atomics doesn't mean that you've created an atomic transaction. Raymond Chen of Microsoft has a much simpler example of that: https:
by userbinator 7y ago
Just because you're using atomics doesn't mean that you've created an atomic transaction.
Raymond Chen of Microsoft has a much simpler example of that:
https://devblogs.microsoft.com/oldnewthing/20040915-00/?p=37863 https://devblogs.microsoft.com/oldnewthing/20040915-00/?p=37...
Yeah, its not easy. But this is NOT an easy subject by any stretch of the imagination.
Having had to debug many difficult race conditions before, I can say that anything related to concurrency is extremely difficult to reason about, and needs to be done with a lot of careful thought.