Module 3 · Build Openbell Lesson 7 of 54
Cash Spent Twice
Two orders, one balance, and the race condition between them.
Transcript
13 sentences · select one to jump thereCheck your understanding
Sara has $2,000. Her phone and her laptop each send an $1,842 buy in the same millisecond. With check and reserve in one step, what happens?
Lesson notes
The rule
Check and reserve in one step: lock the balance, place the hold, then release the lock