Infosys interview question

Thread Communication