Qualcomm Interview Question

question from multithreaded programming . i dont remember the ques