Professional Documents
Culture Documents
OS T-Assignment
OS T-Assignment
OS T-Assignment
30439
BSCS 5 A
OS Theory
2/6/2022
Assignment no. 3
How Linux/Unix deals with the Deadlock?
Deadlock:
A deadlock is a situation in which two computer programs
sharing the same resource are effectively preventing each other
from accessing the resource, resulting in both programs ceasing
to function.
So we can say : a deadlock occurs when two separate processes
compete for resources held by one another.
Example:
For example, consider the following processing sequence for
two concurrently executing application programs:
Program 1 Program 2