Rajiv Rai wrote:There is no guarantee that Thread.yield method
will put current thread into runnable state.
Is the above true?
yield method simply 'conveys' thread scheduler that current thread is ready to give up the processor, and 'requests' that the thread may be moved out of running state to runnable state. However, thread scheduler is free to ignore this request.