deadlock characterization part 1 | necessary conditions for deadlock

  Рет қаралды 89,028

Sudhakar Atchala

Sudhakar Atchala

4 жыл бұрын

#deadlocks #deadlockcharacterization #operatingsystemlectures
A deadlock happens in operating system when two or more processes need some resource to complete their execution that is held by the other process.
A deadlock occurs if the four Coffman conditions hold true. But these conditions are not mutually exclusive. They are given as follows:
Mutual Exclusion
There should be a resource that can only be held by one process at a time. In the diagram below, there is a single instance of Resource 1 and it is held by Process 1 only.
Hold and Wait
A process can hold multiple resources and still request more resources from other processes which are holding them. In the diagram given below, Process 2 holds Resource 2 and Resource 3 and is requesting the Resource 1 which is held by Process 1.
No Preemption
A resource cannot be preempted from a process by force. A process can only release a resource voluntarily. In the diagram below, Process 2 cannot preempt Resource 1 from Process 1. It will only be released when Process 1 relinquishes it voluntarily after its execution is complete.
Circular Wait
A process is waiting for the resource held by the second process, which is waiting for the resource held by the third process and so on, till the last process is waiting for a resource held by the first process. This forms a circular chain. For example: Process 1 is allocated Resource2 and it is requesting Resource 1. Similarly, Process 2 is allocated Resource 1 and it is requesting Resource 2. This forms a circular wait loop.

Пікірлер: 57
@techy_master02
@techy_master02 3 ай бұрын
SIr Rocked Student Passed 👍
@SudhakarAtchala
@SudhakarAtchala 3 ай бұрын
Congratulations. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
@vaishnaviverma6152
@vaishnaviverma6152 7 ай бұрын
thank you sir for doing a lot for us... Your teaching skills are way better than my college faculty...because of you I passed computer organization exam with A+ grade...
@SudhakarAtchala
@SudhakarAtchala 7 ай бұрын
Keep it up. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@swethaakepogu8634
@swethaakepogu8634 2 жыл бұрын
Passionate about teaching ❤️❤️❤️
@saianil1688
@saianil1688 4 жыл бұрын
good teaching sir
@mohan_yerra
@mohan_yerra Жыл бұрын
Huge respect for your effort ☺️
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Thank you 🙌 Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@swethaakepogu8634
@swethaakepogu8634 2 жыл бұрын
Superb effort sir to give Ur best to us🙏👍👍
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@user-bt5ub6lh9r
@user-bt5ub6lh9r 8 ай бұрын
very clear.thankyou so much sir.good job❤❤❤❤❤❤❤
@SudhakarAtchala
@SudhakarAtchala 8 ай бұрын
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@stranger........1938
@stranger........1938 Жыл бұрын
Simply superb explanation sir
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@VB-oc4wg
@VB-oc4wg 4 жыл бұрын
Excellent sir
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
Hai Noor Tech Tuts, plz go through my playlists once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
@lalithareddy7745
@lalithareddy7745 4 жыл бұрын
Cool explanation sir tq
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
Hai , plz go through my playlists once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
@niketangaming2896
@niketangaming2896 Жыл бұрын
At last I got about deadlock😍😍😍😍😍😍thanks sir❤❤
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@harshith1521
@harshith1521 10 күн бұрын
Thank you 🙏
@SudhakarAtchala
@SudhakarAtchala 8 күн бұрын
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@bhargav5611
@bhargav5611 2 жыл бұрын
Nice explanation sir
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Thanks.
@sainaveen5659
@sainaveen5659 3 жыл бұрын
Can someone clarify my doubt . What does simultaneously mean? All the 4 should occur and then dead lock occurs or any one condition is enough to get a deadLock
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
at the same time if those 4 conditions occurs for a resource allocation graph then there may be a deadlock. if we eliminate one of them the no deadlock.
@balajidonepudi5354
@balajidonepudi5354 2 жыл бұрын
Excellent teaching sir
@balajidonepudi5354
@balajidonepudi5354 2 жыл бұрын
I'm literally your student right now
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@user-qz1ii1yk7y
@user-qz1ii1yk7y 3 ай бұрын
Excellent sir❤
@SudhakarAtchala
@SudhakarAtchala 2 ай бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
@sairabatool3862
@sairabatool3862 2 жыл бұрын
Nice
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@sandhyapalle899
@sandhyapalle899 3 жыл бұрын
tqq.. sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Welcome sandya. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@user-qm8rj6dm5d
@user-qm8rj6dm5d 10 ай бұрын
Super sir❤😊
@SudhakarAtchala
@SudhakarAtchala 10 ай бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
@lakshmialekhyaalekya2788
@lakshmialekhyaalekya2788 4 жыл бұрын
If any one of the condition is not satisfied then the dead lock will be occurred or not
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
Not occurs
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
Hai, plz go through my videos once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
@sakthriantpy1717
@sakthriantpy1717 10 ай бұрын
Sir what is the difference between Hold and wait and circular wait , both seems similar ?
@SudhakarAtchala
@SudhakarAtchala 9 ай бұрын
Hold and Wait" is a condition in which a process holds allocated resources while waiting for additional resources. This means that a process can request new resources even if it's already holding some resources. Circular Wait" is a condition where a set of processes are waiting for resources in a circular chain.
@vsravyaK
@vsravyaK 7 ай бұрын
Tq sir for doing this
@SudhakarAtchala
@SudhakarAtchala 7 ай бұрын
So nice of you. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@vsravyaK
@vsravyaK 7 ай бұрын
@@SudhakarAtchala I subscribe your channel sir and also I suggested to my friends also sir
@maryamshahzadi3364
@maryamshahzadi3364 3 жыл бұрын
thanx sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Welcome Shahzadi. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@maryamshahzadi3364
@maryamshahzadi3364 3 жыл бұрын
@@SudhakarAtchala ok I will share with my friends
@ChandanG94805
@ChandanG94805 Жыл бұрын
super sir
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@ChandanG94805
@ChandanG94805 Жыл бұрын
@@SudhakarAtchala done
@vaishnavisatya2721
@vaishnavisatya2721 11 ай бұрын
Sir idhe quetion telugulo explain cheyandi sir plz..... 🙏
@SudhakarAtchala
@SudhakarAtchala 11 ай бұрын
I am uploading Telugu videos in my Telugu channel computer Pantulu. Currently I am uploading daa videos, may be within 2 to 3 weeks daa will be over, after that I will start. Please subscribe to my Telugu channel and share with your friends.
@VB-oc4wg
@VB-oc4wg 4 жыл бұрын
Please provide notes in the description box
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
Definitely
@Suviiii69
@Suviiii69 5 ай бұрын
❤️❤️❤️🥹gratefull for this
@SudhakarAtchala
@SudhakarAtchala 5 ай бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
deadlock prevention in os | deadlock prevention in operating system
13:06
This is not my neighbor  Terrible neighbor! #funny #zoonomaly #memes
00:26
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 38 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 39 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 60 МЛН
Lec19 Deadlock | Necessary conditions for Deadlock | Operating Systems
13:15
Jenny's Lectures CS IT
Рет қаралды 244 М.
How to manage the class room
3:39
MY TEACHING STYLE CHANNEL
Рет қаралды 327 М.
What is deadlock | Necessary Conditions | OS | Lec-63 | Bhanu Priya
12:54
Monitors in Operating Systems || Process Synchronization
9:35
Sudhakar Atchala
Рет қаралды 44 М.
This is not my neighbor  Terrible neighbor! #funny #zoonomaly #memes
00:26