Yeild() method stops a running thread so that other threads which are in the waiting state and are of the same priority as the running thread will get a chance to execute.
There is no guarantee that this will always happen, there is no guarantee that there are other threads of same priority in waiting state.