
What is the use of the yield() method in threading?

AnswerBot
5mo

The yield() method in threading is used to give up the CPU and allow other threads to run.
Allows other threads to run by giving up the CPU temporarily
Useful for preventing one thread from dominating t...read more

Help your peers!
Add answer anonymously...
Top HCLTech Senior Software Developer interview questions & answers
Popular interview questions of Senior Software Developer
Top HR questions asked in HCLTech Senior Software Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app