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
Why is the singleton pattern considered to be an anti pattern?
What is ‘has a’’ relationship in java?
What comes to mind when someone mentions a shallow copy in java?
What is lossy conversion in java?
Similarity and difference between static block and static method ?
Difference between static binding and dynamic binding?
In the below example, what will be the output?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
Is oracle charging for java?
What is the difference between error and an exception?
What are 5 boolean operators?
What is the difference between integer parseint and integer valueof?
What are java annotations?
What is the scope or life time of instance variables?
What is the difference between preemptive scheduling and time slicing?