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

wahts is mean by dynavalidatorform in struts/

1 Answers   SolutionNET,


What invokes a thread?s run() method?

2 Answers  


whats is mean by connectionpooling

2 Answers   SolutionNET,


Is it possible to stop the execution of a method before completion in a sessionbean?

0 Answers  


How will you pass parameters in RMI? Why do you serialize?

0 Answers  






what is JTS?

1 Answers  


What is checkpoint? How to create checkpoints in our java projects?

1 Answers   ABC,


Why are some of the class and element names counter-intuitive?

0 Answers  


What are the methods used for inter-thread communication? and in what class these methods are defined?

2 Answers  


Is 'synchronised' a modifier?

2 Answers   NIIT,


What is a layout manager?

2 Answers  


What are the call back methods in entity bean?

0 Answers  


Categories