what is difference between sleep method and yield method of multi threading?
<p>As currently executing thread while it encounters the call <code>sleep();</code> then thread moves immediately into sleeping state 
where as for <code>yield();</code> thread moves into runnable state/ready state </p>
