Mutex
A lock that lets just 1 process through at a time.
Example
With a mutex, of 2 simultaneous customers only 1 gets the driver.
Test yourself: Mutex
Designing Uber
There are 10 drivers nearby. Who gets notified first?
A driver with 4.9 stars gets the notice before one with 3.5.
0/1
â–¶ Play