Answer Posted / ranganathkini
When a thread yields, its execution is paused and loses
ownership of the monitor lock giving other waiting threads a
chance to run.
When a thread sleeps, its execution is paused for the
specified duration during such an idle period, the thread
continues to retain the ownership of the monitor lock.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the differences between this and super keyword?
How can you traverse a linked list in java?
What is difference between next () and nextline () in java?
Why string is immutable or final in java
What is heterogeneous in java?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
What is the purpose of a transient variable?
What is a boolean structure?
What is difference between class and object in java?
What are Normalization Rules? Define Normalization?
What is getclass () getname () in java?
What is currentthread()?
What language is java written?
Explain garbage collection in java?
Explain about static nested classes in java?