1. Operating Systems by Muhammad Umair
Circular Wait
Inherited from Deadlock Conditions
2. Deadlock Visual Concept
Is it a state where two ore more operations are
waiting for each other, say a computing action
'A' is waiting for action 'B' to complete, while
action 'B' can only execute when 'A' is completed.
3. Cont..
• A deadlock happens in this case if Thread1 and
Thread2 are running simultaneously, and Thread1
acquires lock A and Thread2 acquires lock B. Then,
they both need the lock that the other thread has to
proceed. No advancement.
One way to deal with a case like this would be to
make a function which would grab two locks for a
thread simultaneously, instead of one at a time.
4. Circular wait
It only happens when there is
a processes which are waiting
for other resources to finish.
5. 4 Reasons of Deadlock
1: Mutual Exclusion
2 : Hold and Wait
3 : No Primitive
4 : Circular wait
Circular wait - Each process is waiting
to obtain a resource which is held by
another process.