Re:Why Concurrency Is Hard
by dragontamer on Monday November 09, 2020 @10:21PM
(#25042544)
The x++ isn't necessary.
x = 1;
assert(x==1); // May fail in a parallel world
Shared mutable data concurrency is hard because it removes ability to locally reason about code.
can now fail.