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 off heap memory?
1) There are 10 different threads in runnable state. Each having priority 1 to 10. How does the CPU schedules or executes these threads?
Hi Friends, can you explain instance in java. In general instance means "occurence of something" . In java what is instance.
How can i add a button in applet in java ???
What are event-delegation model and event-inheritance model? Which is best?
What is arrays aslist in java?
What does %d do in java?
What two classes are used to read data only?
0 Answers TryTechnicals Pvt Ltd,
What is == and === in javascript?
Is array an object in java?
What are the types of arrays in java?
What is string and example?