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 are the different conditional statements?
Can a class be declared as static?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
Can we call virtual funciton in a constructor ?
Which software is used for java programming?
What does index mean in java?
Explain importance of inheritance in java?
How do you print array in java?
Is arraylist ordered in java?
What are the features in java?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
Describe the Big-O Notation.
What are the changes in java.io in java 8 ?
Explain about oops concepts.
How can we make a class singleton?