Honeywell interview question

Explain threading concepts with some examples