What are the methods used for inter-thread communication?
and in what class these methods are defined?
Answers were Sorted based on User's Feedback
Answer / ranganathkini
The methods used for inter-thread communication are:
1. wait() - causes thread to wait until another thread calls
the notify() or notifyAll() methods.
2. notify() - wakes up any thread waiting on this object
notifyAll() - wakes up all threads waiting on this object
These methods are a part of the java.lang.Object class.
| Is This Answer Correct ? | 17 Yes | 2 No |
Answer / kiran solkar
In Yield an Sleep
which is Not a the method for Inter Thread communication
plzz answerr
or reply me on kiransolkar@gmail.com
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a program on RMI and JDBC using StoredProcedure?
Write a java program to find out the sum of harmonic series : 1 + ½ + 1/3 + ……… up to nth term , for any value of n.
How many requests can a server fetch at a time?
What is the difference between the font and fontmetrics classes?
What is the need of serialize?
What is the map interface?
Explain the life cycle of servlet?
What is the main functionality of RRL(Remote Reference Layer)?
the same information whether it will connect to the database or it will be used previous information?
What is local interface. How values will be passed?
whats is stored procedure,joins
What are preemptive scheduling and time slicing and what is the difference between them?