---
title: "How to detect deadlock and fix it in java?"  
description: "How to detect deadlock and fix it in java?"  
author: "Anonymous User"  
published: 2015-09-02  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/22797/how-to-detect-deadlock-and-fix-it-in-java  
category: "java"  
tags: ["java", "thread"]  
reading_time: 1 minute  

---

# How to detect deadlock and fix it in java?

when two or more threads waiting for each other to release lock and get stuck for infinite time , situation is called deadlock .

## Answers

### Answer by Anonymous User

when two or more threads waiting for each other to release lock and get stuck for infinite time , situation is called deadlock .


---

Original Source: https://www.mindstick.com/interview/22797/how-to-detect-deadlock-and-fix-it-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
