SurveyMonkey interview question

Q: How to solve locking issue when multiple thread calling the same API