Professional Documents
Culture Documents
deadlock to occur
Identify the methods for handling deadlock
Thread
A thread is a basic unit of
CPU utilization. It comprises
a thread ID, a program
counter, a register set, and a
stack
A thread is a subdivision of a
process
“Program X is not
responding”
Deadlock !
Definition: A deadlock is a
situation in which two or
more processes are each
waiting for the other to finish,
but none ever does. none of
them can
release any
resources
none of the none of
processes them can be
can run awakened
Deadlock
FLASH BACK: System Resources
Printers, Disk Drives, Memory
Space, network connections,
CPU Cycles, and more…
Ever Wondering?
“It takes money to make money”
“You can’t get a job without
experience. You can’t get experience
without a job”
Four Necessary Conditions
For A Deadlock To Occur
a. mutual exclusion
b. hold-and-wait
c. no-preemption
d. circular-wait condition
Necessary Conditions for Deadlock to
Occur
ALL of these four MUST happen at once for a
deadlock to occur:
a. Mutual exclusion
b. Hold – and – wait
c. No – preemption
d. Circular – wait condition
Explanation:
Explanation:
Explanation: