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 |
Define the remote object implementation?
Can you give me a simple example of using the requiredif validator rule?
What are the benefits of detached objects?
what is handle?
What is message driven beam?
difference between apllet and interface class
iam writing the contents to a excel through I/O i am putting first statement as WRITE and then READ(from excel) immediately..later user complains that he is not getting the date by using READ ..wat could be the situation
Difference between loadclass and class.forname?
what is a Daemon Thread?
what is difference between checked exception & unchecked exception in java?
what are getters and setters in Java with examples?
how i secure my site with the https protocol.what are the steps?