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

Where can I ask questions and make suggestions about seam?

0 Answers  


When a thread blocks on i/o?

0 Answers  


What is the difference between a menuitem and a checkboxmenuitem?

0 Answers  


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

0 Answers  


Why doesn’t the focus feature on the tag work in every circumstance?

0 Answers  






What is Servlet Filter And What does it work?

1 Answers   TCS,


list the types of dialodg

1 Answers   Wipro,


What is synchronization?

6 Answers   Verizon,


What is meant by Superconductivity?

4 Answers  


For which statements does it make sense to use a label?

0 Answers  


What is the difference between system.out ,system.err and system.in?

0 Answers  


What event results from the clicking of a button?

0 Answers  


Categories