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 is fail fast in java?

1257


What is the use of System class?

1223


How objects of a class are created if no constructor is defined in the class?

1126


What happens if we override private method?

1030


What is the syntax and characteristics of a lambda expression? Explain

1094


What is boolean flag in java?

1155


What is java ceil?

1081


How do you sort a string in java?

1022


how we can make a write-only class in java?

1082


Can we have a try block without catch block?

1054


What is arrays fill in java?

1061


What is nested class?

1054


What is a java applet? What is an interface?

1140


How are this() and super() used with constructors in java programming?

1122


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

1037