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
how can you take care of mutual exclusion using java threads? : Java thread
What are the advantages of encapsulation in java?
Explain different types of wrapper classes in java?
Which is better 64 bit or 32 bit?
Garbage collection in java?
Write a program in java to establish a connection between client and server?
What is assembly used for?
What is application system?
What is a package in java? List down various advantages of packages.
What is a list in java?
What does this mean java?
Difference between this() and super() in java ?
What is api data?
What is a stack class in java ?
What is the use of join method?