Implementing Test&Set
Two operations: read and write
Should the lock be cacheable
- Yes, get locality and spin in cache
- No, get faster response
To get atomicity, lock-down the bus between the read and write components
Sweeter solution: Read the value exclusively, but don’t yield exclusivity until the write is done