So we see how locks are implemented here. How atomic integers are implemented then?
assignment7
Can we say that the difference is that test-and-set lock will always be forced to st mem[addr], #1 while spinning, compared to the incorrect implementation?
So we see how locks are implemented here. How atomic integers are implemented then?