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
Can It is possible to synchronize the constructor of a Java Class?
Why unicode is important?
Define max and min heap, also the search time of heap.
What is the purpose of using the java bean?
What does super keyword do?
Give example to differentiate between call by value and call by reference.
How does a for loop work?
Is void a wrapper class?
What are different types of encoding?
What is a double vs float?
What are the advantages of autoboxing?
What is the access scope of a protected method?
What is the purpose of static keyword in java?
What is assembly condition codes?
What are the pillars of java?