what is the Yield() method used in threads?
Answers were Sorted based on User's Feedback
Answer / pankaj malik
Causes the currently executing thread object to temporarily
pause and allow other threads to execute
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Answer / manikandan [ gtec,vellore ]
after invoking yeild() method it enters into a ready state.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sasirekha
yield method will allow other thread to execute.
| Is This Answer Correct ? | 2 Yes | 2 No |
What is string in java is it a data type?
What is data type modifier?
how to deploy apache tomcat server to weblogic server in java
What is double parsedouble in java?
what is finalmethod & final variable with example?
What is difference between static class and normal class?
What is getkey () in java?
what are the difference between Java and .Net?
What is empty list in java?
How does indexof work?
JSP is by default thread safe or not? what is the meaning of isThreadSafe="true" and isThreadSafe="false". Explain it? Thanks, Seenu
Can we start a thread twice in java?