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
What are the library functions in java?
What is a cup of java?
What is a programming object?
Is set thread safe java?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
Can we have any code between try and catch blocks?
What are the differences between processes and threads?
What does system out println () do?
What is a void in java?
Can I uninstall java?
Are primitives objects?
What is composition in java?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
Can you pass by reference in java?
Where pragma is used?