Pregunta de entrevista de Amdocs

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