HCLTech interview question

How do you implement thread concept