Question d’entretien chez ByteDance

How do threads work in programming?