1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
DESC ; Basic example of a pair of programs which have a ; race condition, because their use of shared memory ; is not atomic. See 'petersons-no-race' for a cure. ; PROG 0 MOV M0, R0 INC R0 MOV R0, M0 PROG 1 MOV M0, R0 INC R0 MOV R0, M0