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

Why is the singleton pattern considered to be an anti pattern?

881


What is ‘has a’’ relationship in java?

1211


What comes to mind when someone mentions a shallow copy in java?

1105


What is lossy conversion in java?

1199


Similarity and difference between static block and static method ?

917


Difference between static binding and dynamic binding?

1102


In the below example, what will be the output?

1026


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

1056


Is oracle charging for java?

1027


What is the difference between error and an exception?

1146


What are 5 boolean operators?

1169


What is the difference between integer parseint and integer valueof?

997


What are java annotations?

1154


What is the scope or life time of instance variables?

1108


What is the difference between preemptive scheduling and time slicing?

1061