DoorDash interview question

Explain the threading model of this application