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