SlideShare a Scribd company logo
1 of 8
Presented by :
Mohit dadich &
Sunil Vishvakarma
B-tech 4th sem
Uid – K10042,K1oo44
3/9/2014

Submit to :

Mr. Parth Vidhyarthi
Asst prof. of CS&E Department

1
3/9/2014

2
The Deadlock problem
 In a computer system deadlocks arise when members

of a group of processes which hold resources are
blocked indefinitely from access to resources held by
other processes within the group.

3/9/2014

3
Deadlock example
 Pi requests one I/O controller and the system allocates

one.
 Pj requests one I/O controller and again the system
allocates one.
 Pi wants another I/O controller but has to wait since
the system ran out of I/O controllers.
 Pj wants another I/O controller and waits.

3/9/2014

4
Conditions for deadlocks
 Mutual exclusion. No resource can be shared by
more than one process at a time.
 Hold and wait. There must exist a process that is
holding at least one resource and is waiting to

acquire additional resources that are currently
being held by other processes.
 No preemption. A resource cannot be preempted.
 Circular wait. There is a cycle in the wait-for graph.

3/9/2014

5
Strategies for handling deadlocks
 Deadlock prevention. Prevents deadlocks by
restraining requests made to ensure that at least
one of the four deadlock conditions cannot occur.
 Deadlock avoidance. Dynamically grants a

resource to a process if the resulting state is safe. A
state is safe if there is at least one execution
sequence that allows all processes to run to
completion.
 Deadlock detection and recovery. Allows
deadlocks to form; then finds and breaks them.
3/9/2014

6
Deadlock Prevention
 1. A process acquires all the needed resources
simultaneously before it begins its
execution, therefore breaking the hold and wait
condition.

 E.g. In the dining philosophers’ problem, each
philosopher is required to pick up both forks at the
same time. If he fails, he has to release the fork(s)
(if any) he has acquired.
 Drawback: over-cautious.
3/9/2014

7
THANKYOU!

3/9/2014

8

More Related Content

Viewers also liked (8)

Dad
DadDad
Dad
 
Secure Your Financial Future
Secure Your Financial FutureSecure Your Financial Future
Secure Your Financial Future
 
Melissa_Novel Tingkatan 4 ( Bahasa Melayu )
Melissa_Novel Tingkatan 4 ( Bahasa Melayu )Melissa_Novel Tingkatan 4 ( Bahasa Melayu )
Melissa_Novel Tingkatan 4 ( Bahasa Melayu )
 
Inflation
InflationInflation
Inflation
 
Aplikasi KOSA KATA LUAS _Penulisan
Aplikasi KOSA KATA LUAS _PenulisanAplikasi KOSA KATA LUAS _Penulisan
Aplikasi KOSA KATA LUAS _Penulisan
 
80 KESALAHAN TATABAHASA
80 KESALAHAN TATABAHASA80 KESALAHAN TATABAHASA
80 KESALAHAN TATABAHASA
 
Etika dalam sukan PJ Tingkatan 4
Etika dalam sukan PJ Tingkatan 4Etika dalam sukan PJ Tingkatan 4
Etika dalam sukan PJ Tingkatan 4
 
SPM PHYSICS-PAPER-3--GUIDE-
SPM PHYSICS-PAPER-3--GUIDE-SPM PHYSICS-PAPER-3--GUIDE-
SPM PHYSICS-PAPER-3--GUIDE-
 

Similar to DEADLOCK

Similar to DEADLOCK (20)

Deadlocks
DeadlocksDeadlocks
Deadlocks
 
Deadlock avoidance (Safe State, Resource Allocation Graph Algorithm)
Deadlock avoidance (Safe State, Resource Allocation Graph Algorithm)Deadlock avoidance (Safe State, Resource Allocation Graph Algorithm)
Deadlock avoidance (Safe State, Resource Allocation Graph Algorithm)
 
4.3 Deadlock [Autosaved].pptx
4.3 Deadlock [Autosaved].pptx4.3 Deadlock [Autosaved].pptx
4.3 Deadlock [Autosaved].pptx
 
Deadlock ppt
Deadlock pptDeadlock ppt
Deadlock ppt
 
Ch 4 deadlock
Ch 4 deadlockCh 4 deadlock
Ch 4 deadlock
 
Overview of Deadlock unit 3 part 1
Overview of Deadlock unit 3 part 1Overview of Deadlock unit 3 part 1
Overview of Deadlock unit 3 part 1
 
Os case study word
Os case study wordOs case study word
Os case study word
 
Os module 2 d
Os module 2 dOs module 2 d
Os module 2 d
 
Chapter06
Chapter06Chapter06
Chapter06
 
Operating system Deadlock
Operating system DeadlockOperating system Deadlock
Operating system Deadlock
 
Deadlocks
DeadlocksDeadlocks
Deadlocks
 
Deadlock Presentation
Deadlock PresentationDeadlock Presentation
Deadlock Presentation
 
Deadlock
DeadlockDeadlock
Deadlock
 
What is a deadlock
What is a deadlockWhat is a deadlock
What is a deadlock
 
Unit 3 part 2(DEADLOCK)
Unit 3 part 2(DEADLOCK)Unit 3 part 2(DEADLOCK)
Unit 3 part 2(DEADLOCK)
 
3.6 Deadlock-operating system unit 3.pptx
3.6 Deadlock-operating system unit 3.pptx3.6 Deadlock-operating system unit 3.pptx
3.6 Deadlock-operating system unit 3.pptx
 
9 deadlock
9 deadlock9 deadlock
9 deadlock
 
Deadlock- Operating System
Deadlock- Operating SystemDeadlock- Operating System
Deadlock- Operating System
 
Deadlock in distribute system by saeed siddik
Deadlock in distribute system by saeed siddikDeadlock in distribute system by saeed siddik
Deadlock in distribute system by saeed siddik
 
ikh311-05
ikh311-05ikh311-05
ikh311-05
 

Recently uploaded

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 

Recently uploaded (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 

DEADLOCK

  • 1. Presented by : Mohit dadich & Sunil Vishvakarma B-tech 4th sem Uid – K10042,K1oo44 3/9/2014 Submit to : Mr. Parth Vidhyarthi Asst prof. of CS&E Department 1
  • 3. The Deadlock problem  In a computer system deadlocks arise when members of a group of processes which hold resources are blocked indefinitely from access to resources held by other processes within the group. 3/9/2014 3
  • 4. Deadlock example  Pi requests one I/O controller and the system allocates one.  Pj requests one I/O controller and again the system allocates one.  Pi wants another I/O controller but has to wait since the system ran out of I/O controllers.  Pj wants another I/O controller and waits. 3/9/2014 4
  • 5. Conditions for deadlocks  Mutual exclusion. No resource can be shared by more than one process at a time.  Hold and wait. There must exist a process that is holding at least one resource and is waiting to acquire additional resources that are currently being held by other processes.  No preemption. A resource cannot be preempted.  Circular wait. There is a cycle in the wait-for graph. 3/9/2014 5
  • 6. Strategies for handling deadlocks  Deadlock prevention. Prevents deadlocks by restraining requests made to ensure that at least one of the four deadlock conditions cannot occur.  Deadlock avoidance. Dynamically grants a resource to a process if the resulting state is safe. A state is safe if there is at least one execution sequence that allows all processes to run to completion.  Deadlock detection and recovery. Allows deadlocks to form; then finds and breaks them. 3/9/2014 6
  • 7. Deadlock Prevention  1. A process acquires all the needed resources simultaneously before it begins its execution, therefore breaking the hold and wait condition.  E.g. In the dining philosophers’ problem, each philosopher is required to pick up both forks at the same time. If he fails, he has to release the fork(s) (if any) he has acquired.  Drawback: over-cautious. 3/9/2014 7