4 ms·
Your original scenario was one with deterministic execution order, this one as far as I can tell is not ... so, how is this example relevant to the discussion?
by zAy0LfpBZLC8mAC 7y ago
Your original scenario was one with deterministic execution order, this one as far as I can tell is not ... so, how is this example relevant to the discussion?
- awinter-py 7y agoif 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?