Practice
Learn
← Quit
0 / 0 correct
System Design
Hard
1 of 721
Ride-hailing: how do you avoid two riders being matched to the same driver at once?
A
Use the riders' clocks to decide
B
Lock the entire city
C
Atomically claim the driver (compare-and-set on driver state, or a single owner per driver/region processes offers)
D
Let both riders get the driver and cancel one later