Pergunta de entrevista da empresa Infosys

Difference between wait and sleep?