What is waiting state? In what ways a thread can enter into
waiting state?
Answers were Sorted based on User's Feedback
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 |
Why threads will block on I/O?
what is DGC?
What is the difference between a stub and a skeleton?
9 Answers ABC, College School Exams Tests, Geoservices, Polaris, Qualcomm, Rajiv Gandhi College of Engineering and Technology RGCET, UTIITSL, Wipro,
why static class in java
What are the methods used for inter-thread communication? and in what class these methods are defined?
What classes of exceptions may be caught by a catch clause?
What is ioc concept?
what about static?
What will happens, when a thread cannot acquire a lock on an object?
Name the method to find, if a thread is active or not?
What modifiers may be used with an inner class that is a member of an outer class?
Why is actionform a base class rather than an interface?