What is the life cycle of Thread ?
Answer Posted / shajin.a.xavier
Multithreading is the mechanism in which more than one
thread run independent of each other within the process.
wait (), notify () and notifyAll() methods can be used for
inter-thread communication and these methods are in Object
class. wait() : When a thread executes a call to wait()
method, it surrenders the object lock and enters into a
waiting state. notify() or notifyAll() : To remove a thread
from the waiting state, some other thread must make a call
to notify() or notifyAll() method on the same object.
| Is This Answer Correct ? | 16 Yes | 6 No |
Post New Answer View All Answers
What is internal iteration in java se 8?
What is the difference between iterator and list iterator?
What are alternatives to java serialization?
Explain java coding standards for constants?
What is the access scope of a protected method?
What is the use of object and class classes?
Can we override protected method in java?
What is better- service oriented or batch oriented solutions?
What is thread safe java?
What are the two environment variables that must be set in order to run any java programs?
Can two objects have same hashcode?
How do you compare objects in java?
Difference between overriding and overloading in java?
Give the hierarchy of inputstream and outputstream classes.
What is currentthread()?