Академический Документы
Профессиональный Документы
Культура Документы
Muhammad Mubeen
Topic
Working hard to minimize the distance between what am I and What I want to be
Skills
Php Javascript 60%
Deadlock C# 40%
CSS 3 60%
Photoshop 70%
Agenda
01 DeadLock (Its Intro & How It Comes )
02 Deadlock Types
03 Deadlock Prevention
Conceptual level
1 2 3 4
Intro
Travelling
Studying
For business Computer
For getting job
For enjoyment
Watching
For learning
Business For entertainment
etc
Human DEADLock@??
Seems strange I will Explain
(Ak tang)
A man can move upward Ak
tang at a time.
{ }
Human DEADLock@??
Use
If possible
Methods for Handling
Deadlocks Handling
• Ensure that the system will never enter a deadlock
state:
• Deadlock prevention
• Deadlock avoidance
• Allow the system to enter a deadlock state and then
recover
• Ignore the problem and pretend that deadlocks never
occur in the system; used by most operating systems,
including Windows, UNIX etc
Deadlock Conditions
Mutual Exclusion
Circular Wait:
No Pre-emption:
Deadlock Conditions
1. Mutual exclusion condition
• each resource assigned to 1 process or is available
2. Hold and wait condition
• process holding resources can request additional
3. No preemption condition
• previously granted resources cannot forcibly taken
away
4. Circular wait condition
• must be a circular chain of 2 or more processes
• each is waiting for resource held by next member of
the chain
Deadlock Prevention
As we need
Exclusive access to devices, files, locks, servers,
or other resources
ALLPPT