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 yielding and sleeping? how they different?

Answer Posted / ravikiran

yield() method will suspend all the same priority thread
which is running and gives chance to next thread to run
which is of the same priority
sleep() method will make the thread to sleep for a
particular period of time which is specified in the
argument list

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are inbuilt functions in java?

988


What about interthread communication and how it takes place in java?

990


What is close method? How it's different from Finalize & Dispose?

998


How do you identify if jvm is 32-bit or 64-bit from java program?

908


What are different types of references?

928


What are different types of control structures?

917


Is sizeof a keyword in java programming?

1013


When can you say a graph to be a tree?

1023


What a static class can contains?

1104


Write a program to search a number in the given list of numbers.

989


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

1025


I want to store more than 10 objects in a remote server? Which methodology will follow?

3122


What is bigger kb or mb?

978


Difference between Preemptive scheduling vs. Time slicing?

976


What is the purpose of main function in java?

966