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
Difference between hashmap and hashtable?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
What are the different class loaders used by jvm?
How are the elements of a cardlayout organized?
How to determine SGA site?
To identify IDL language what mapping mechanism is used?
How to implement RMI in Java?
What is ripple effect?
What state does a thread enter when it terminates its processing?
Do you think that java should have had pointers?
wahts is mean by dynavalidatorform in struts/
Explain the advantages and disadvantages of detached objects.
Why does the tag url-encode javascript and mailto links?
What is a class loader? What are the different class loaders used by jvm?
Difference between swing and awt?