Compunnel interview question

What is a thread and ways to implement it?