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 is data type example?
Can we execute java program without main method?
What is continuity of a function?
What is the function of http?
What is stack example?
How dead lock situation occurs in java and how you can identify it?
what is meant by Byte code concept in Java?
What is the difference between java applets and applications?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?
What does int argc char * argv [] mean?
What is compiler and what its output.
Why are arrays useful in java?
How to display arraylist values in java?