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?

Answers were Sorted based on User's Feedback



What is waiting state? In what ways a thread can enter into waiting state?..

Answer / 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

What is waiting state? In what ways a thread can enter into waiting state?..

Answer / anonymous

2 ways.
wait( time ---);
sleep();

Is This Answer Correct ?    6 Yes 7 No

Post New Answer

More Advanced Java Interview Questions

hi, All are saying that now software field position is not good and in 5-10yrs total software field ll be saturated . is it true? i am unable decide ii continue in this field or not please tell me?

19 Answers  


How do you set security in applets?

1 Answers   IBM,


what is a portable component?

0 Answers  


what's the main difference between unix os and linux os?

2 Answers   TCS,


Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)

2 Answers   Wipro,


What is JasperReports?

2 Answers  


What is Connection Pooling?

1 Answers   Enteg Technologies, Infosys, Polaris,


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

0 Answers  


On a computer that having single CPU, how multithreading concept can be achieved?

1 Answers   Zensar,


types of exceptions

1 Answers  


Which class is the immediate superclass of the menucomponent class?

0 Answers  


What are the different class loaders used by jvm?

0 Answers  


Categories