Pergunta de entrevista da empresa Morgan Stanley

How many ways to create a thread, which one is preferrable and why?