01Chapter 1: The resource model: processes, resources, and instancesDeadlock analysis starts with a precise model of how processes use resources. A process is a running program. A resource type is a category of resource, such as a printer, a memory buffer, or a database lock. An instance is one available unit of a resource type.3 min read
02Chapter 2: What a deadlock is, and what it is notAssume you know basic operating-system concepts, including processes, threads, critical sections, locks, and semaphores. You should also be comfortable reading directed graphs and comparing resource counts.2 min read
03Chapter 3: The four necessary conditionsThis chapter assumes you know what processes, threads, locks, semaphores, and critical sections are. You should also be comfortable reading directed graphs. A deadlock is a state in which a group of processes waits forever because each process needs an event that another process in the group must ca3 min read
04Chapter 4: Resource-allocation graphs: when a cycle means deadlockAssume you know processes, threads, locks or semaphores, directed graphs, and basic vector notation. This chapter uses a resource-allocation graph, or RAG, to represent which resources processes hold and which resources they request.2 min read
05Chapter 5: Four ways to handle deadlockThis chapter assumes you understand processes, threads, locks or semaphores, directed-graph cycles, and basic vector and matrix comparisons. The goal is to choose a system policy before or after processes compete for resources.2 min read
06Chapter 6: Prevention: breaking one Coffman conditionThis chapter assumes you know processes, threads, critical sections, locks or semaphores, directed cycles, and basic vector or matrix comparisons. The goal is to prevent deadlock by ensuring that at least one necessary condition can never hold.2 min read
07Chapter 7: Safe and unsafe statesAssume you know processes, resource instances, mutual exclusion, directed graphs, and element-wise comparison of vectors. This chapter uses the Banker's model, where each process declares its maximum possible demand before requesting resources.2 min read
08Chapter 8: The safety algorithm, step by stepAssume you know processes, resource instances, directed graphs, and element-wise comparison of vectors. This chapter uses the Banker's model, where each process declares its maximum possible demand for every resource type.2 min read
10Chapter 10: Avoidance with claim edges for single-instance resourcesThis chapter assumes you can read a resource-allocation graph, follow directed edges, and detect cycles. You should also know that a resource may have one or more instances. Here, every resource type has exactly one instance, and each process declares the resources it may request.2 min read
11Chapter 11: Detection with a wait-for graphAssume you know processes, resource-allocation graphs, locks, and directed graph cycles. This chapter focuses on systems where each resource type has exactly one instance.2 min read
13Chapter 13: Recovery: terminating processes and preempting resourcesAssume you know processes, resource instances, directed graphs, and the deadlock-detection algorithms for single-instance and multiple-instance resources. This chapter focuses on what an operating system does after it detects a deadlock.3 min read
14Chapter 14: GATE problem patterns and shortcutsThis chapter assumes you know processes, locks or semaphores, directed cycles, and element-wise vector comparison. For a GATE question, first identify whether it asks about prevention, avoidance, detection, or recovery. Then check whether each resource type has one instance or multiple instances.2 min read