Compunnel Interview Question

What is a thread and ways to implement it?