Question
What the difference is between notify and notify All methods?

Answers

- The notify will run only first thread which has called wait() on same object. i.e. the object which has called the wait() must be the same as the object that calls
- The notifyAll will run all threads which has called wait() on same object.- While using notifyAll the highest priority thread will run first.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Define Critical section
  • Q What is the purpose of .mecia class in bootstrap
  • Q How servlets are deployed in Java
  • Q Who has the power to form a new state from the territory of any State in India?
  • Q What are the most challenging documents you have done? What kinds of proposals have your written?
  • Q Article 17 of the constitution:
  • Q What are the 6 signs of cardiac arrest?
  • Q Mention what is the role of DataContext classes in LINQ?
  • Q What was the age of Akbar at the time of his coronation in Kalanaur?
  • Q What is the use of a public holiday calendar?
  • Q What is a File server?