what is the Yield() method used in threads?
Answer Posted / chikku
This static method is essentially used to notify the system that the current thread is willing to "give up the CPU" for a while. The general idea is that:
The thread scheduler will select a different thread to run instead of the current one.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What do you mean by composition in java?
Why is java so popular?
How to sort array in descending order in java?
Difference between stack and queue?
Can we override constructor in java?
Compare java and python.
What is heterogeneous in java?
What is token in java?
What is immutable state?
what is the difference between Object Based Language and Object Oriented Language?
Program to Find the second largest element in an array.
Is char * a string?
What are the different types of inheritance in java?
How do you compare objects in java?
Explain the importance of finally over return statement?