Movatterモバイル変換


[0]ホーム

URL:


PPTX, PDF4,658 views

Deadlock Avoidance in Operating System

Deadlock avoidance methods analyze resource allocation to determine if granting a request would lead to an unsafe state where deadlock could occur. A deadlock happens when multiple processes are waiting indefinitely for resources held by each other in a cyclic dependency. To prevent deadlock, an operating system must have information on current resource availability and allocations, as well as future resource needs. The system only grants requests that will lead to a safe state where there are enough resources for all remaining processes and deadlock is not possible.

Embed presentation

Downloaded 68 times
PRESENTATION ONDEADLOCK AVOIDANCE
In this slide we are going toknow:What is Deadlock?How can we Avoid Deadlock?
What is Deadlock?A deadlock is a situation which occurs when a process enters in a waiting statebecause the requested resource is being held by another waiting process, which inturn is waiting for another resource held by another waiting process. If a process isunable to change its state indefinitely because the resources requested by it arebeing used by another waiting process, then the system is said to be in a deadlock.
A practical example of Deadlock You can't get a job without experience. You can't get experience without a job.Let’s visualize DeadlockTwo processes competing for two resources in opposite order.(A) A single process goes through.(B) The later process has to wait.(C) A deadlock occurs when the first process locks the first resource at thesame time as the second process locks the second resource.(D) The deadlock can be resolved by cancelling and restarting the firstprocess.
Deadlock Avoidance Deadlock can be avoided if certain information about processesare available to the operating system before allocation of resources. For every resource request, the system sees whether granting therequest will cause the system to enter an unsafe state that meansthis state could result in deadlock.The system then only grants the requests that will lead to safestates.
Possible States Deadlock: No further progress is possible. Unsafe State: A state that may allow deadlock. It is possible for aprocess to be in an unsafe state but for this not to result in adeadlock. Safe State: A state is safe if it has a bunch of processes and thereare enough resources for the 1st process to be finished and after itreleases it’s resources there are enough resources for the nextprocess to be proceed. There is no chance of Deadlock.
In order to determine the condition of next state (safe/ unsafe/ deadlock) thesystem must know these information in advance: Resources currently available. Resources currently allocated to each process. Resources that will be required and released by these processes in the future.To avoid deadlock we have to follow a simple rule. If a request causes the nextstate into unsafe mood or deadlock then we shouldn’t proceed the request.THE END
Presented by:Mohammad Hafiz-Al-Masud,ID: 1209035,Session: 2012/13,Department of ICT,Comilla University.

Recommended

PPT
deadlock avoidance
PDF
PPT
Chapter 7 - Deadlocks
PPTX
Deadlocks in operating system
DOCX
BANKER'S ALGORITHM
PPT
Deadlock detection and recovery by saad symbian
PPTX
deadlock handling
PPT
Operating System Deadlock Galvin
PPTX
Deadlock ppt
PDF
Deadlock Avoidance - OS
PPT
Deadlock
PPTX
Demand paging
PPT
Contiguous Memory Allocation.ppt
PPTX
Concurrency Control in Database Management System
PPTX
Deadlock Prevention
PPTX
Timestamp protocols
PPTX
Demand Paging in OS (Operating System): Example, Advantages, Working
PPT
Operating System: Deadlock
PPTX
Deadlock Presentation
PPTX
Critical section problem in operating system.
PPTX
Directory structure
PPT
16. Concurrency Control in DBMS
PPTX
Concurrency Control in Distributed Database.
PPT
17. Recovery System in DBMS
PPTX
Operating system Dead lock
PPTX
Concurrency control
PPTX
Methods for handling deadlock
PDF
Deadlock
PPTX
Deadlock detection & prevention
PPTX
Deadlock Slides

More Related Content

PPT
deadlock avoidance
PDF
PPT
Chapter 7 - Deadlocks
PPTX
Deadlocks in operating system
DOCX
BANKER'S ALGORITHM
PPT
Deadlock detection and recovery by saad symbian
PPTX
deadlock handling
PPT
Operating System Deadlock Galvin
deadlock avoidance
Chapter 7 - Deadlocks
Deadlocks in operating system
BANKER'S ALGORITHM
Deadlock detection and recovery by saad symbian
deadlock handling
Operating System Deadlock Galvin

What's hot

PPTX
Deadlock ppt
PDF
Deadlock Avoidance - OS
PPT
Deadlock
PPTX
Demand paging
PPT
Contiguous Memory Allocation.ppt
PPTX
Concurrency Control in Database Management System
PPTX
Deadlock Prevention
PPTX
Timestamp protocols
PPTX
Demand Paging in OS (Operating System): Example, Advantages, Working
PPT
Operating System: Deadlock
PPTX
Deadlock Presentation
PPTX
Critical section problem in operating system.
PPTX
Directory structure
PPT
16. Concurrency Control in DBMS
PPTX
Concurrency Control in Distributed Database.
PPT
17. Recovery System in DBMS
PPTX
Operating system Dead lock
PPTX
Concurrency control
PPTX
Methods for handling deadlock
PDF
Deadlock
Deadlock ppt
Deadlock Avoidance - OS
Deadlock
Demand paging
Contiguous Memory Allocation.ppt
Concurrency Control in Database Management System
Deadlock Prevention
Timestamp protocols
Demand Paging in OS (Operating System): Example, Advantages, Working
Operating System: Deadlock
Deadlock Presentation
Critical section problem in operating system.
Directory structure
16. Concurrency Control in DBMS
Concurrency Control in Distributed Database.
17. Recovery System in DBMS
Operating system Dead lock
Concurrency control
Methods for handling deadlock
Deadlock

Similar to Deadlock Avoidance in Operating System

PPTX
Deadlock detection & prevention
PPTX
Deadlock Slides
PPT
Dead Lock
PPTX
Deadlocks
PPTX
Unit iv: Deadlocks
PPTX
Ch 4 deadlock
PPTX
Deadlocks2
PPT
A ppt on deadlock in operating systems for the better explanation
PPTX
Algorithm 4Chapter Four- Deadlock (5).pptx
PPTX
7308346-Deadlock.pptx
PPTX
DEADLOCK
PPT
Section07-Deadlocks_operating_system.ppt
PPT
Section07-Deadlocks (1).ppt
PPTX
OS Presentation 1 (1).pptx
PPTX
deadlock in OS.pptx
PPTX
Deadlock
PPTX
dead lock in operating system Presentation1.pptx
PPTX
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
PDF
Section07-Deadlocks.pdf
Deadlock detection & prevention
Deadlock Slides
Dead Lock
Deadlocks
Unit iv: Deadlocks
Ch 4 deadlock
Deadlocks2
A ppt on deadlock in operating systems for the better explanation
Algorithm 4Chapter Four- Deadlock (5).pptx
7308346-Deadlock.pptx
DEADLOCK
Section07-Deadlocks_operating_system.ppt
Section07-Deadlocks (1).ppt
OS Presentation 1 (1).pptx
deadlock in OS.pptx
Deadlock
dead lock in operating system Presentation1.pptx
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Section07-Deadlocks.pdf

Recently uploaded

PPTX
TRANSPORTATION ENGINEERING Unit-5.1.pptx
PPTX
Blockchain and cryptography Lecture Notes
PPTX
Computer engineering for collage studen. pptx
PDF
ghvjvhhvkjvgiyvicitiychjnlnokigytdcesdftyhuiookjhygvcrxesdcftyjiokoloihtfcxsx...
PDF
How-Forensic-Structural-Engineering-Can-Minimize-Structural-Failures.pdf
PPTX
introduction-to-maintenance- Dr. Munthear Alqaderi
PDF
@Regenerative braking system of DC motor
PPTX
Washing-Machine-Simulation-using-PICSimLab.pptx
PDF
IPE 105 - Engineering Materials Constitution of Alloys
PPT
Virtual Instrumentation Programming Techniques.ppt
PDF
Chemical Bonding _ Class Notes.pdf for jee
PPTX
Mc25104 - data structures and algorithms using PYTHON OOP_Python_Lecture_Note...
PDF
Small Space Big Design - Amar DeXign Scape
PDF
Introduction to MySQL Spatial Features and Real-World Use Cases
PDF
HEV Descriptive Questions https://www.slideshare.net/slideshow/hybrid-electr...
PPTX
Bio engineering and production of energy through biomass.pptx
PDF
Welcome to ISPR 2026 - 12th International Conference on Image and Signal Pro...
PPTX
Presentation 1.pptx WHAT IS ARTIFICIAL INTELLIGENCE?
PPTX
31.03.24 - 7.CURRICULUM & TEACHING - LEARNING PROCESS IMPLEMENTATION DETAILS....
PPTX
Waste to Energy - G2 Ethanol.pptx to process
TRANSPORTATION ENGINEERING Unit-5.1.pptx
Blockchain and cryptography Lecture Notes
Computer engineering for collage studen. pptx
ghvjvhhvkjvgiyvicitiychjnlnokigytdcesdftyhuiookjhygvcrxesdcftyjiokoloihtfcxsx...
How-Forensic-Structural-Engineering-Can-Minimize-Structural-Failures.pdf
introduction-to-maintenance- Dr. Munthear Alqaderi
@Regenerative braking system of DC motor
Washing-Machine-Simulation-using-PICSimLab.pptx
IPE 105 - Engineering Materials Constitution of Alloys
Virtual Instrumentation Programming Techniques.ppt
Chemical Bonding _ Class Notes.pdf for jee
Mc25104 - data structures and algorithms using PYTHON OOP_Python_Lecture_Note...
Small Space Big Design - Amar DeXign Scape
Introduction to MySQL Spatial Features and Real-World Use Cases
HEV Descriptive Questions https://www.slideshare.net/slideshow/hybrid-electr...
Bio engineering and production of energy through biomass.pptx
Welcome to ISPR 2026 - 12th International Conference on Image and Signal Pro...
Presentation 1.pptx WHAT IS ARTIFICIAL INTELLIGENCE?
31.03.24 - 7.CURRICULUM & TEACHING - LEARNING PROCESS IMPLEMENTATION DETAILS....
Waste to Energy - G2 Ethanol.pptx to process

Deadlock Avoidance in Operating System

  • 1.
  • 2.
    In this slidewe are going toknow:What is Deadlock?How can we Avoid Deadlock?
  • 3.
    What is Deadlock?Adeadlock is a situation which occurs when a process enters in a waiting statebecause the requested resource is being held by another waiting process, which inturn is waiting for another resource held by another waiting process. If a process isunable to change its state indefinitely because the resources requested by it arebeing used by another waiting process, then the system is said to be in a deadlock.
  • 4.
    A practical exampleof Deadlock You can't get a job without experience. You can't get experience without a job.Let’s visualize DeadlockTwo processes competing for two resources in opposite order.(A) A single process goes through.(B) The later process has to wait.(C) A deadlock occurs when the first process locks the first resource at thesame time as the second process locks the second resource.(D) The deadlock can be resolved by cancelling and restarting the firstprocess.
  • 5.
    Deadlock Avoidance Deadlockcan be avoided if certain information about processesare available to the operating system before allocation of resources. For every resource request, the system sees whether granting therequest will cause the system to enter an unsafe state that meansthis state could result in deadlock.The system then only grants the requests that will lead to safestates.
  • 6.
    Possible States Deadlock:No further progress is possible. Unsafe State: A state that may allow deadlock. It is possible for aprocess to be in an unsafe state but for this not to result in adeadlock. Safe State: A state is safe if it has a bunch of processes and thereare enough resources for the 1st process to be finished and after itreleases it’s resources there are enough resources for the nextprocess to be proceed. There is no chance of Deadlock.
  • 7.
    In order todetermine the condition of next state (safe/ unsafe/ deadlock) thesystem must know these information in advance: Resources currently available. Resources currently allocated to each process. Resources that will be required and released by these processes in the future.To avoid deadlock we have to follow a simple rule. If a request causes the nextstate into unsafe mood or deadlock then we shouldn’t proceed the request.THE END
  • 8.
    Presented by:Mohammad Hafiz-Al-Masud,ID:1209035,Session: 2012/13,Department of ICT,Comilla University.

[8]ページ先頭

©2009-2025 Movatter.jp