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

Difference between hashmap and hashtable?

1165


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

1077


What are the different class loaders used by jvm?

1099


How are the elements of a cardlayout organized?

1085


How to determine SGA site?

2544


To identify IDL language what mapping mechanism is used?

3946


How to implement RMI in Java?

2880


What is ripple effect?

1082


What state does a thread enter when it terminates its processing?

1067


Do you think that java should have had pointers?

1065


wahts is mean by dynavalidatorform in struts/

2080


Explain the advantages and disadvantages of detached objects.

1030


Why does the tag url-encode javascript and mailto links?

1013


What is a class loader? What are the different class loaders used by jvm?

1109


Difference between swing and awt?

1302