Why can two updates become one?
A and B each want to add 1 to a shared counter initially at 0. The teal box holds the shared value; purple and blue boxes hold each thread’s last read. Completed increments counts finished writes; lost updates is completed increments minus the shared value.
Diagrama
The shared counter is zero. Both local-value slots are empty.