multithreading interview questions and answers in c