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 waiting state? In what ways a thread can enter into
waiting state?

Answer Posted / sandya

In 3 ways:
1.A Thread can enter the waiting state by invoking it's
sleep() method
2.By blocking on i/o by unsuccessfully attempting to
acquire an object's lock or by invoking an object's wait()
method.
3.It can also enter the waiting state by invoking it's
suspend() method.

Is This Answer Correct ?    27 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain phantom read?

2208


What is a policy?

2285


Why is actionform a base class rather than an interface?

1046


Is “abc” a primitive value?

1097


What are the steps to write p-to-p model application?

2461


What is difference between object state and behavior?

1079


Why do I get a duplicate name error when loading a jar file?

1127


How can I scroll through list of pages like the search results in google?

949


Why do threads block on i/o?

1238


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

1162


Can I use multiple html form elements with the same name?

1039


Explain how will the struts know which action class to call when you submit a form?

947


Java is fully object oriented languages or not?

980


What is the purpose of the wait(), notify(), and notifyall() methods?

1017


How messaging services are done, before release of JMS?

2124