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
Write a singleton program?
Is “abc” a primitive value?
how do you Handle Front End Application data against DB with example?
How messaging services are done, before release of JMS?
What is local interface. How values will be passed?
What is table mutation and how do you avoid it?
What is the difference between static and non-static with examples?
How to deploy Jar, War files in J2EE?
Explain about RMI Architecture?
we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?
What’s jboss jbpm?
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
Explain ioc concept?
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions
What is glasgow?