Domanda di colloquio di Qualcomm

question from multithreaded programming . i dont remember the ques