adspace


Explain yielding in threading?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

can any one know about NIC (National Informatics Centre) questions Patterns and full detail about written exam, and interview send to softshikha2005@yahoo.com.in Thank you

2160