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 |
Which is bigger float or double java?
What is design pattern and there types?
What is the core java?
In how many ways we can create threads in java?
What is the code inside the public void actionPerformed(ActionEvent ae) override method in Applet [ Condition:- you have one TextField and One Button , you have to enter any color name inside the TextField, when you click on Button Your background will change according to your input color name]
What do you mean by a JVM?
What are "methods" and "fields"?
How do you remove duplicates from an array in java?
What is array class in java?
Explain yield() method in thread class ?
What is difference between public static and void?
how tha garbage collector know that the object will be deleted? on which algorithm the garbage collector works? what is the working principle of garbage collector? How manay types of garbage collectors r there?