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
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
Why is actionform a base class rather than an interface?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
how do you Handle Front End Application data against DB with example?
What is the immediate superclass of the applet class?
What is the difference between the session.get() method and the session.load() method?
What are the design considerations while making a choice between using interface and abstract class?
Are there books about seam?
Will the general public have access to the infobus apis?
How many times may an objects finalize() method be invoked by the garbage collector?
What value does read() return when it has reached the end of a file?
What is the diffrence between a local-tx-datasource and a xa-datasource?
What is a tasks priority and how is it used in scheduling?
which book is better for jdbc ,servlets and jsp
Why is string immutable in java?