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
Explain phantom read?
What is a policy?
Why is actionform a base class rather than an interface?
Is “abc” a primitive value?
What are the steps to write p-to-p model application?
What is difference between object state and behavior?
Why do I get a duplicate name error when loading a jar file?
How can I scroll through list of pages like the search results in google?
Why do threads block on i/o?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
Can I use multiple html form elements with the same name?
Explain how will the struts know which action class to call when you submit a form?
Java is fully object oriented languages or not?
What is the purpose of the wait(), notify(), and notifyall() methods?
How messaging services are done, before release of JMS?