How can two threads be made to communicate with each other?
Answer Posted / @dania@
Two threads can communicate with each other using
the wait() and notify() , notifyAl() methods. wait()
method tells the thread to wait until another threads
calls notify() method
Is This Answer Correct ? | 18 Yes | 0 No |
Post New Answer View All Answers
What is the difference between serializable and externalizable interfaces?
Is static a keyword in java?
What is the concept of multithreading?
What is the purpose of an interface?
What are the types of literals?
What is Java Reflection API? Why it’s so important to have?
What is difference between == and === in js?
What is the difference between applet and application?
What is high level language in computer?
what is the purpose of using rmisecuritymanager in rmi?
What are the access modifiers available in java?
What is a heavyweight component?
Is math an abstract class in java?
What is %d in printf?
Does constructor creates the object ?