---
title: "What is the difference between notify() and notifyAll()?"  
description: "What is the difference between notify() and notifyAll()?"  
author: "Anonymous User"  
published: 2015-05-10  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/2502/what-is-the-difference-between-notify-and-notifyall  
category: "java"  
tags: ["java", "thread"]  
reading_time: 1 minute  

---

# What is the difference between notify() and notifyAll()?

The notify() is used to unblock one waiting thread whereas notifyAll() method is used to unblock all the threads in waiting state.

## Answers

### Answer by Anonymous User

The notify() is used to unblock one waiting thread whereas notifyAll() method is used to unblock all the threads in waiting state.


---

Original Source: https://www.mindstick.com/interview/2502/what-is-the-difference-between-notify-and-notifyall

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
