Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What do you mean by composition in java?

949


Why is java so popular?

1050


How to sort array in descending order in java?

872


Difference between stack and queue?

1013


Can we override constructor in java?

1039


Compare java and python.

934


What is heterogeneous in java?

899


What is token in java?

956


What is immutable state?

939


what is the difference between Object Based Language and Object Oriented Language?

969


Program to Find the second largest element in an array.

1105


Is char * a string?

931


What are the different types of inheritance in java?

950


How do you compare objects in java?

881


Explain the importance of finally over return statement?

991