Professional Documents
Culture Documents
My File
My File
My File
(Autonomous)
(ISO/IEC - 27001 - 2013 Certified)
Example: Consider a system with three disk drives and three processes. When
each process request one disk drive, system allocates one disk drive to each
process. Now there is no more drive available in the system. If all three
processes request for one more disk drive, then all three processes will go into
the waiting state and system will go in deadlock state. Because any one process
from the three can execute only when one of them will release the disk drive
allocated to it.
Necessary Conditions:
1. Mutual exclusion: At least one resource must be held in a non-
sharable mode; that is, only one process at a time can use the resource.
2. Hold and Wait: A process must be holding at least one resource and
waiting to acquire additional resources that are currently being held by
10 | 2 6
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
(Autonomous)
(ISO/IEC - 27001 - 2013 Certified)
other processes.
OR
11 | 2 6
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
(Autonomous)
(ISO/IEC - 27001 - 2013 Certified)
12 | 2 6