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 |
Do I have to use jsps with my application?
the same information whether it will connect to the database or it will be used previous information?
Is it possible to stop the execution of a method before completion in a sessionbean?
Explain what is orm?
Is jvm a overhead?
Why threads will block on I/O?
what are design patterns in java?give with example?
What is Connection Pooling?
1 Answers Enteg Technologies, Infosys, Polaris,
What is checkpoint? How to create checkpoints in our java projects?
What is synchronization and why is it important?
What will happens, when a thread cannot acquire a lock on an object?
What is permgen or permanent generation?