Options
Why
Read-then-write lets two buyers read 1 and both write 0. A conditional update is atomic in the database: one buyer's update affects a row, the other's affects none and gets "sold out".
Databases · Multiple choice
Read-then-write lets two buyers read 1 and both write 0. A conditional update is atomic in the database: one buyer's update affects a row, the other's affects none and gets "sold out".