In this case, it doesn't seem that yield would matter. If the start thread is sleeping for five seconds on every loop, there would be no reason that the other thread wouldn't get scheduled. And as you can see in sasikumar's reply, scheduling wasn't the issue at all.