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 jar?
What is data type in java?
What is quick sort in java?
What is a generic type?
What is data structure in java?
What is the most important feature of java? What is an interface?
Tell me how many ways are there to initialise an integer with a constant.
What are the 3 types of control structures?
What are abstract methods in java?
What is meant by anonymous class?
What is bom encoding?
What is thread life cycle in java?
How many types of classes are there in java?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
What is difference between module and function?