Changes between Version 5 and Version 6 of AtomicOperations
- Timestamp:
- Jun 30, 2009, 8:06:30 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AtomicOperations
v5 v6 28 28 # lock acquisition 29 29 loop LL Reg1 @ # Reg1 <= M[@] 30 BNE Reg1 loop # continue if lock not taken (Reg1 == 0)30 BNE Reg1 loop # continue if lock not taken (Reg1 == 0) 31 31 SC 1 @ # M[@] <= 1 / Reg2 <= KO 32 BNE Reg2 loop # retry if not atomic (Reg2 != 0)32 BNE Reg2 loop # retry if not atomic (Reg2 != 0) 33 33 ... 34 34 # lock release