Saturday 15 September 2018

Does yield method releases the lock?

‘yield’ method is nothing to do with object locks. When application calls ‘yield’ method, it gives a hint to the scheduler that the current thread is willing to release its current use of a processor. The scheduler is free to ignore this hint.

You may like

No comments:

Post a Comment