Domanda di colloquio di Amdocs

Explain"yield" method with respect to multithreading. Also, write a snippet of code to run thread.