Qualcomm interview question

write a multi threaded server application