Pregunta de entrevista de Edifecs

Not so difficult, but write a multi-threaded program