Sample Use of LL-SC
lock: ll R1, Loc -- Load-lock Loc to R1
bnz R1, lock -- Spin if Loc locked
sc Loc, R2 -- Cond’ly store R2 in Loc
beqz lock -- If failed, repeat
unlock: st Loc, #0 -- Clear location
Many processes can do an LL at once, but only the first to the SC wins