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

How are commas used in the intialization and iteration parts of a for statement?

1149


What must a class do to implement an interface?

1285


Are we allowed to change the transaction isolation property in middle of a transaction?

1078


Can I import same package/class twice? Will the jvm load the package twice at runtime?

1198


How can I avoid validating a form before data is entered?

1053


What do you need to set-up a cluster with jboss?

1126


Are enterprise beans allowed to use thread.sleep()?

1199


What is metaspace?

1096


What restrictions are placed on the values of each case of a switch statement?

1062


What are the services in RMI ?

2448


wahts is mean by dynavalidatorform in struts/

2122


What is the difference between the string and stringbuffer classes?

1163


What are the benefits of detached objects?

1105


What is the difference between the session.update() method and the session.lock() method?

1088


What classes of exceptions may be caught by a catch clause?

1081