Namma Yatri interview question

How do you handle multi-threading conditions in your code?