Explain yielding in threading?



Explain yielding in threading?..

Answer / Shaili Gaur

Yielding in threading is a voluntary relinquishment of the CPU by a running thread, allowing other threads to execute. This operation is performed by calling the Thread.Yield() method in .NET or Python's threading.yield() function. It helps improve responsiveness and prevent a single thread from monopolizing the CPU.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Windows Threads Interview Questions

Can you explain too many times when I click on a sentence a caption comes on grr a pop up blocker maybe blocking--however I have pushed the turn off pop up blocker. This only happens on google it does not happen on att.net?

1 Answers  


What is thread safety?

1 Answers  


What is the reason for getting the dialouge box( send this error to microsoft giving options as send to microsoft and dont send ) when we abort from the any work when it was struck.

1 Answers   CTS, HCL,


cannot copy (file name)- access is denied,

4 Answers  


Why thread is called as a lightweight process?

1 Answers  


What is thread injection?

1 Answers  


1.Can anyone tell how to install os manually? and is there any problem to install os? 2. Can anyone tell how to resolve the blue screen error to install os

6 Answers   Wipro,


What is AD/AM in Windows2003?

1 Answers   Accenture, ASD Lab, Mphasis,


How do you kill a service?

1 Answers  


What is thread safety? How do you achieve it?

1 Answers  


Explain cannot copy (file name)- access is denied?

1 Answers  


what are the reasons of rebooting the system?

11 Answers   HCL, HP, Mphasis,


Categories