What is use of yield() method?

When yield() method is called on running thread, that thread will give the chance to other threads which are in ready to run state with the highest priority than the running thread.

1 comment :

  1. You are totally right. This post actually made my day. You can not imagine just how much time I
    had spent for this info! Thanks!

    kajal agarwal hot

    ReplyDelete