Pregunta de entrevista de Nice

multithreading code questions, explain, fix and improve.