---
title: "What is deadlock in Operating System? Explain."  
description: "What is deadlock in Operating System? Explain."  
author: "Kalin"  
published: 2022-04-04  
canonical: https://answers.mindstick.com/qa/96689/what-is-deadlock-in-operating-system-explain  
category: "troubleshooting"  
tags: ["troubleshooting", "operating systems"]  
reading_time: 1 minute  

---

# What is deadlock in Operating System? Explain.

What is [deadlock in Operating](https://answers.mindstick.com/qa/96690/which-are-the-necessary-conditions-to-achieve-a-deadlock-in-operating-system) System? Explain.

## Answers

### Answer by Hitesh Vohra

![What is deadlock in Operating System? Explain.](https://answers.mindstick.com/questionanswer/a312748d-c105-4869-b597-fb953f12b09c/images/f57ddad1-88c3-495d-88a9-e540035aaa95.png)\

- A **[deadlock](https://www.mindstick.com/forum/159421/a-database-update-operation-consistently-throws-a-deadlock-error)** occurs when a group of processes is stalled because each process is holding a resource and waiting for another process to obtain it.
- If all four of the following requirements are met at the same time, deadlock can occur.
- Exclusion from each other: There are two or more resources that cannot be shared (Only one process can use at a time)
- A process is defined by the holding of at least one resource and the waiting for further resources.
- No Preemption: A resource can only be obtained from a process if it is released by the process.
- A collection of operations is waiting for each other in a circular fashion.

## \

**Read More: [How many types of fragmentation occur in Operating System?](https://answers.mindstick.com/qa/96693/how-many-types-of-fragmentation-occur-in-operating-system)**


---

Original Source: https://answers.mindstick.com/qa/96689/what-is-deadlock-in-operating-system-explain

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
