Pergunta de entrevista da empresa RTX

What are threads and how do they function?