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
Is java se open source?
Explain the pointers in Java?
What is a double?
What is are packages?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
What sorting algorithm does javascript use?
what is deadlock? : Java thread
explain local datetime api in java8?
What is e java?
What is a priority queue java?
Can anonymous class have constructor?
What is the new line character?
What are inbuilt functions in java?
Explain illegalmonitorstateexception and when it will be thrown?
What is arraylist e in java?