---
title: "What is Difference between wait() and sleep()"  
description: "What is Difference between wait() and sleep()"  
author: "Anonymous User"  
published: 2015-07-03  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/2679/what-is-difference-between-wait-and-sleep  
category: "java"  
tags: ["java", "threading", "multiple threading"]  
reading_time: 1 minute  

---

# What is Difference between wait() and sleep()

What is the difference between a wait() and sleep() in Threads?\
Is my understanding that a wait()-ing Thread is still in running mode and uses CPU cycles but a sleep()-ing does not consume any CPU cycles correct?\
Why do we have both wait() and sleep(): how does their implementation vary at a lower level?

## Answers

### Answer by Anonymous User

Refer here :http://www.mindstick.com/forum/23317/What%20is%20Difference%20between%20wait%20and%20sleep#.VZatm_mqqko \

### Answer by Anonymous User

What is the difference between a wait() and sleep() in Threads?\
Is my understanding that a wait()-ing Thread is still in running mode and uses CPU cycles but a sleep()-ing does not consume any CPU cycles correct?\
Why do we have both wait() and sleep(): how does their implementation vary at a lower level?


---

Original Source: https://www.mindstick.com/interview/2679/what-is-difference-between-wait-and-sleep

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
