4 ms·
if you make some assumptions about how long IO takes and how the systems order IO, this overlapping-increment example will have a deterministic order and still
by awinter-py 7y ago
if you make some assumptions about how long IO takes and how the systems order IO, this overlapping-increment example will have a deterministic order and still be wrong every time (increment once instead of twice).
The assumptions are that op1 and op2 are started in order and that your database replies in the order received.
- zAy0LfpBZLC8mAC 7y ago> if you make some assumptions about how long IO takes and how the systems order IO, this overlapping-increment example will have a deterministic order and still be wrong every time (increment once instead of twice). So? Is every piece of code that gives the wrong result a race condition?