DoorDash Interview Question

Explain the threading model of this application