---
title: "What methods java providing for Thread communications ?"  
description: "What methods java providing for Thread communications ?"  
author: "Amit Singh"  
published: 2011-04-16  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/753/what-methods-java-providing-for-thread-communications  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What methods java providing for Thread communications ?

Java provides three methods that threads can use to communicate with each other: wait, notify, and notifyAll. These methods are defined for all Objects (not just Threads). The idea is that a method called by a thread may need to wait for some condition to be satisfied by another thread; in that case, it can call the wait method, which causes its thread to wait until another thread calls notify or notifyAll.

## Answers

### Answer by Amit Singh

Java provides three methods that threads can use to communicate with each other: wait, notify, and notifyAll. These methods are defined for all Objects (not just Threads). The idea is that a method called by a thread may need to wait for some condition to be satisfied by another thread; in that case, it can call the wait method, which causes its thread to wait until another thread calls notify or notifyAll.


---

Original Source: https://www.mindstick.com/interview/753/what-methods-java-providing-for-thread-communications

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
