What are the methods used for inter-thread communication?
and in what class these methods are defined?
Answer Posted / 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 |
Post New Answer View All Answers
What are the diff types of exception?
What is the relationship between an event-listener interface and an event-adapter class?
Can I run seam with jdk 1.4 and earlier?
What are the services in RMI ?
why static class in java
What are the pros and cons of detached objects?
whats is statement and procedure
What is ioc concept & explain it?
What is local interface. How values will be passed?
What is the argument type of a programs main() method?
What are the different types of exception?
Can I map more than one table in a cmp?
Which container method is used to cause a container to be laid out and redisplayed?
how to use debug in my elipse to solve problems that exist in my project
what are getters and setters in Java with examples?