Pergunta de entrevista da empresa IGT

in how many we can create thread, why two ways?