HCLTech Interview Question

How do you implement thread concept