Pergunta de entrevista da empresa illumifin

Threads, how to create threads? which is best way?