Deadlock in Operating System | 4 Conditions of Deadlocks | Deadlock Handling - Process Management

  Рет қаралды 121,208

Simple Snippets

Simple Snippets

Күн бұрын

Support Simple Snippets by Donations -
Google Pay UPI ID - tanmaysakpal11@okicici
PayPal - paypal.me/tanmaysakpal11
--------------------------------------------------------------------------------------------- In this deadlock in OS video tutorial, we will understand what is a deadlock in Operating systems, what are the conditions that result in deadlocks & strategies for handling deadlocks.
Deadlocks in OS -
A process in operating systems uses different resources and uses resources in following way.
1) Requests a resource
2) Use the resource
2) Releases the resource
Deadlock is a situation where a set of processes are blocked because each process is holding a resource and waiting for another resource acquired by some other process.
Deadlock can arise if following four conditions hold simultaneously (Necessary Conditions) -
1) Mutual Exclusion: One or more than one resource are non-sharable (Only one process can use at a time)
2) Hold and Wait: A process is holding at least one resource and waiting for resources.
3) No Preemption: A resource cannot be taken from a process unless the process releases the resource.
4) Circular Wait: A set of processes are waiting for each other in circular form.
Methods for handling deadlock -
There are three ways to handle deadlock
1) Deadlock prevention or avoidance - The idea is to not let the system into deadlock state.
2) Deadlock detection and recovery - Let deadlock occur, then do preemption to handle it once occurred.
3) Ignore the problem all together - If deadlock is very rare, then let it happen and reboot the system. This is the approach that both Windows and UNIX take.
Following three strategies can be used to remove deadlock after its occurrence -
1) Preemption - We can take a resource from one process and give it to other. This will resolve the deadlock situation, but sometimes it does causes problems.
2) Rollback - In situations where deadlock is a real possibility, the system can periodically make a record of the state of each process and when deadlock occurs, roll everything back to the last checkpoint, and restart, but allocating resources differently so that deadlock does not occur.
3) Kill one or more processes - This is the simplest way, but it works.
Simple Snippets Official Website -
simplesnippets.tech/
Simple Snippets on Facebook -
/ simplesnippets
Simple Snippets on Instagram -
/ simplesnippets
Simple Snippets on Twitter -
/ simplesnippet
Simple Snippets Google Plus Page -
plus.google.com/+SimpleSnippets
Simple Snippets email ID -
simplesnippetsinfo@gmail.com
For More Technology News, Latest Updates and Blog articles visit our Official Website - simplesnippets.tech/
#Deadlock #OperatingSystems #OS

Пікірлер: 126
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌
@tudang8892
@tudang8892 3 жыл бұрын
Can u have more lecture about OS
@Nostale4Life
@Nostale4Life 2 жыл бұрын
Thank you so much for explaining this so in-depth as an IT student struggling with a lecturer that reads off slides and has not scenario to explain it makes it difficult for me to understand. Your explanations has helped me grasp the concept for my exam thats happening tomorrow! Thank you truly
@SuikodenGR
@SuikodenGR 4 жыл бұрын
Terrific Video. Going thru Operating System course and you definitely nailed it in the most simplest terms :)
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much😇 very happy to hear this from you. Please do share the videos with your friends & ask them to support by subscribing to our channel. That's the biggest help and support ✌️
@frederickadiali2644
@frederickadiali2644 2 жыл бұрын
I really enjoy this short video on deadlock, I was totally confused with it. I wish I can get the full video to watch and download 👍👍👍👍👍👍👍👍👍👍
@lesliewahiermeh8475
@lesliewahiermeh8475 4 жыл бұрын
This has been so helpful during this quarantine time, and lessons have been suspended in my country. Thanks.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Glad it helped!✌
@bittumahato421
@bittumahato421 3 жыл бұрын
@@SimpleSnippets contek no
@deepakandhakumar9602
@deepakandhakumar9602 2 жыл бұрын
Iam just learning it before my semester and my semester is just next mrng .It was very easy to understand..thank you for your video 📷✨
@wisdomtv360
@wisdomtv360 2 жыл бұрын
Wow you are amazing I was dozing until I heard your video then walk up you are brilliant
@Uraharatix
@Uraharatix Жыл бұрын
Man, you just made my day.
@imranfauzi7752
@imranfauzi7752 4 жыл бұрын
Nice video man, thank you👍🏻
@alwayzsree
@alwayzsree 2 жыл бұрын
Great information. Thanks much
@nishantraut90
@nishantraut90 Жыл бұрын
Your Operating system , c++ and DSA playlists helped me a lot, Thank you so much sir 🙏🙏
@SimpleSnippets
@SimpleSnippets Жыл бұрын
Most welcome ❤️💪
@jaithramandavilli3327
@jaithramandavilli3327 3 жыл бұрын
thank you very much
@thinkrobinthink3039
@thinkrobinthink3039 3 жыл бұрын
This helpful and understandable Thanks man
@Playtoon-NepaliNurseryrhymes
@Playtoon-NepaliNurseryrhymes 5 жыл бұрын
Hey Simple Snippets, You make thing much easier to solve and your explanation are fantastic would you please make a video about bakery and banker algorithms please. Sooner will be better.
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much for such a wonderful comment. Surely will try to cover those topics soon ✌️
@shanginivennu2002
@shanginivennu2002 2 жыл бұрын
Thank you
@AbdulAziz-lf9lg
@AbdulAziz-lf9lg 5 жыл бұрын
Bro , it's the best Video I found , You got a great explainability ..🙆👌👌👌👌👌
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much Abdul😇 you have no idea how happy I am to hear this from you. Really appreciate your super support✌️ Please do share the video with your friends as well. That'll be the best help and support 😇✌️
@tharindumandusanka7708
@tharindumandusanka7708 2 жыл бұрын
Thank You very much sir...❤❤
@user-pm1ee2uc5q
@user-pm1ee2uc5q 8 ай бұрын
well explained thanku
@saweranadeem2040
@saweranadeem2040 2 жыл бұрын
JAZAK ALLAH SIR
@user-yh7oe3qy5f
@user-yh7oe3qy5f 2 жыл бұрын
Awesome
@bonnothomba3186
@bonnothomba3186 5 жыл бұрын
thank you so much , your tutorial really helped
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome. Please do share the video with your friends too 😇
@ajeetdhaliwal9243
@ajeetdhaliwal9243 4 жыл бұрын
awesome
@tonynacional3062
@tonynacional3062 5 жыл бұрын
Thank you so much for uploading this video
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome my friend. I would request you to please share the video with your friends too 😊✌️
@rajeshchintu4694
@rajeshchintu4694 5 жыл бұрын
Good explanation broo U r explanation is better than my lectures I got it clearly thankuu Well said
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much Rajesh 😊 I'm very glad to hear this from you. I would request you to please share the videos with your friends too ✌️
@rajeshchintu4694
@rajeshchintu4694 5 жыл бұрын
Sure broo a I already shared in my grp they too liked it U know broo this question is came for 10 marks in today's xm co&os semester and I wrote completely what you have said bcos of u i done this thanku soo much broo
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Amazing buddy ✌️ very happy to hear this 😊
@rajeshchintu4694
@rajeshchintu4694 5 жыл бұрын
@@SimpleSnippets thanks broo I have some topics that I can't understand I will msg u if possible make a video on that
@deveshmore3106
@deveshmore3106 4 жыл бұрын
Ohhh Bhai Kya samjhaya 😌😌 .... Bhaghwan hoo aap Bhai 🔥🔥
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Aare Bhai bhai Bhai 😅 Samanya manus ahe mi Mitra 😇✌️ Just trying to share my knowledge with all ✌️
@mercy_syonzi
@mercy_syonzi 5 жыл бұрын
Thank you. God bless you.
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome 😊
@andersonf78
@andersonf78 5 жыл бұрын
Fantastic explanation! Thank you so much!
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome Anderson ✌️ I'm glad to hear this from you. I would request you to please share the video with your friends too 😊
@rafaelwilliam3805
@rafaelwilliam3805 3 жыл бұрын
I wanted to study for my exam months ago, but my left side and right side of my brain had a deadlock.
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
😂😂😂😂😂
@alifarhadali5580
@alifarhadali5580 3 жыл бұрын
me right now 🤣🤣
@shreeshababu2809
@shreeshababu2809 5 жыл бұрын
Bruh you just saved me from failing terribly Thanks a lot man 🙏
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome buddy 😎 super happy to hear this from you and glad that this video helped you 😇 I would request you to please share the video with your friends too. That'll be the best help and support for everyone 🤟😁😊
@shreeshababu2809
@shreeshababu2809 5 жыл бұрын
@@SimpleSnippets Sure thing man ! Will do ❣
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Sounds great 😊✌️ super grateful for the support ya 😇
@bonkmaykr
@bonkmaykr 4 жыл бұрын
Really good explanation. Had a hard time understanding the accent but the real world examples were really good
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Glad to know this from you buddy. Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@SushilKumar-ue2ui
@SushilKumar-ue2ui 4 жыл бұрын
great explanation keep up the good work bro :)
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thanks bro 😇🤘 please do share the videos with you friends too 😇
@themadhukar_clicks3081
@themadhukar_clicks3081 4 жыл бұрын
good understanding of concepts.. thanks...
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Most welcome bro 😊 I'm happy you liked the video. I would request you to please share the video with your friends 🤟
@TheAkiller101
@TheAkiller101 5 жыл бұрын
Excelent Concise Explanation!
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much 😊 Please do share it with your friends too ✌️
@user-tq9bx9nf4q
@user-tq9bx9nf4q Жыл бұрын
Good explanation, I love the example about the road traffic in cities in India :D
@SimpleSnippets
@SimpleSnippets Жыл бұрын
😂❤️
@jubinvarghese588
@jubinvarghese588 5 жыл бұрын
Thankyou so much man u saved me.
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Hehe most welcome bro 😊✌️ happy to help
@prashanthd.p2285
@prashanthd.p2285 5 жыл бұрын
Thanks a lot ,it really helps a lot for preparation of my interview
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome Prashanth😊😁 so happy to hear this from you 😇. I would request you to please share the video with your friends too ✌️😊
@prashanthd.p2285
@prashanthd.p2285 5 жыл бұрын
@@SimpleSnippets Sure ,I am gonna share this to all my friends
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much bro 😁😊 This means a lot for the channel as well. Keep up the superb support ✌️
@nithishkumar6641
@nithishkumar6641 5 жыл бұрын
Good Explanation bro and Make a video for semaphore
@Socrates841
@Socrates841 5 жыл бұрын
thank you so much!
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome my friend. Please share this video with your friends too ✌😇
@mahanandavadageri6012
@mahanandavadageri6012 4 жыл бұрын
Hey senior plz do some more videos related to this topics and also cover all videos related to operating system. Ur voice is excellent and also ur explanation very good
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Currently my entire focus is on DSA course so it will take some time for me to consider other topics. But sure I have this in mind. ✌😇
@vasu7031
@vasu7031 5 жыл бұрын
simply superb...
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you do much buddy. Glad to hear this feedback from you 😇😇✌️✌️
@revanth6476
@revanth6476 3 жыл бұрын
As the channel name says, its simple👌
@nawrin6636
@nawrin6636 5 жыл бұрын
Thank You so much
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome buddy 😊✌️ Please do share the videos with your friends too ya ✌️
@AbdullahAlMasud1995
@AbdullahAlMasud1995 5 жыл бұрын
Very clear to understand brother
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome buddy 😎 super happy to hear this from you and glad that this video helped you 😇 I would request you to please share the video with your friends too. That'll be the best help and support for everyone 🤟😁😊
@venkatesh4760
@venkatesh4760 3 жыл бұрын
Good Explanation. Thanks
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad it was helpful! It would mean a lot if you could please share our channel and videos with your friends too ✌
@trinadas9086
@trinadas9086 4 жыл бұрын
Thanks for explaining those topics..... it's help a lot....🙂🙂🙂😊😊😊
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Most welcome Trina, please do share the videos with your friends too. Thats the biggest help and support you can provide :-)
@trinadas9086
@trinadas9086 4 жыл бұрын
@@SimpleSnippets yaaaa.... obviously ☺️☺️
@teetanrobotics5363
@teetanrobotics5363 4 жыл бұрын
could you just make one playlist for whole of operating systems ? It would simplify things.Love your channel and amazing content as usual.
@ashishagnihotri5566
@ashishagnihotri5566 5 жыл бұрын
explaination is good ,keep goin.
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thanks bro 😇✌️ glad to hear this from you 😋✌️
@chandrashekar8178
@chandrashekar8178 4 жыл бұрын
Thank u bro u made me understand
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Most welcome buddy 😇 I'm glad to hear this from you. Please do share this channel with your friends too 🤘 that's the biggest help and support you can provide 😬
@chandrashekar8178
@chandrashekar8178 4 жыл бұрын
@@SimpleSnippets I am already shared bro
@BCMShruthiShree
@BCMShruthiShree 4 жыл бұрын
Thanks a lot bro.....
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Most welcome buddy 🤘 please do share 😁
@trinadas9086
@trinadas9086 4 жыл бұрын
You are the best ❤️❤️❤️❤️❤️❤️
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Hehehe thank you Trina, so are you :-)
@naedeezy8967
@naedeezy8967 3 жыл бұрын
Arigato!
@pradeepn6489
@pradeepn6489 3 жыл бұрын
Bro put some videos about file management in os
@matt-te8vc
@matt-te8vc 4 жыл бұрын
they tried to break my safe but i had the deadlock
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
😂😂😂😂
@snehakb8503
@snehakb8503 4 жыл бұрын
Thank you so much, it's wonderful 😁
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
I am glad you liked this tutorial. Please do share the video with your friends too 😇
@argaming2999
@argaming2999 4 жыл бұрын
How to fix it?
@jyotsnapandit8321
@jyotsnapandit8321 2 жыл бұрын
god bless
@jagadeeshbandaruhstfqvrxzi8826
@jagadeeshbandaruhstfqvrxzi8826 5 жыл бұрын
thanks bro .keep growing😊
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome brother 😊 I'm really glad to hear this from you ✌️ I would request you to please share the video with your friends too 😊✌️
@jagadeeshbandaruhstfqvrxzi8826
@jagadeeshbandaruhstfqvrxzi8826 5 жыл бұрын
yes bro
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you bro😊✌️
@jagadeeshbandaruhstfqvrxzi8826
@jagadeeshbandaruhstfqvrxzi8826 5 жыл бұрын
@@SimpleSnippets bro i having a small doubt onn disc scheduling
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
What is it? Maybe I can help. I'll check up ✌️
@sunilkumarbysani2024
@sunilkumarbysani2024 5 жыл бұрын
Dead lock algorithms ? Can you prepare that sir? I don't want because my semester is going to complete by tomorrow but for next year's students it gonna help And finally thanq you very much sir this semester we have os subject and successfully completed with great marks I had given a seminar on CPU scheduling with reference of your videos and got great response in my class ..👍☺️☺️☺️😊😊😊
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Yes sure I have some topics under deadlock detections and preventions algorithms. Right now already busy with 2-3 different things so that's why kind of busy but surely I'll cover these topics. And wow bro, thank you so much for such positive feedback and I'm happy you got help from the OS videos. And also thanks for using the reference of my videos in your seminar buddy ✌️ do share the channel with all your friends and Juniors, that'll be the best help and support ❤️ Keep in touch ✌️
@urramu7960
@urramu7960 5 жыл бұрын
Abbooo
@nikitamishra7414
@nikitamishra7414 5 жыл бұрын
Thanks tanmay always helpfull😊 I want more content about prevention avoidance ND detection. What I do??
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Hey hi Nikita, thank you so much buddy for the positive feedback. I do have plans to cover further topics which you've mentioned but it'll kinda take time. Currently working on many other things. Well at this moment I would suggest to Google it (which I guess you already know but still 😅) ✌️
@nikitamishra7414
@nikitamishra7414 5 жыл бұрын
Simple Snippets haha great suggestion😂😂😂 OK thank uh😅 i'll definitely apply on it😜
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
😛😛😛
@nikitamishra7414
@nikitamishra7414 5 жыл бұрын
Simple Snippets 😂🤗
@radharanipanda3784
@radharanipanda3784 4 жыл бұрын
Good morning sir.. why there's only one video of deadlock topic.. we need more videos for the full concept.. please take intiative for it
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
RIght now I am focusing on DSA. You may list down some topics you want to see here & I will note it down for futher considerations ✌
@radharanipanda3784
@radharanipanda3784 4 жыл бұрын
@@SimpleSnippets Thank you so much sir for the reply. I need deadlock avoidence, detections, Banker's algorithm & related mathematical concepts sir. If now DSA will be published on this site,then now I will also start DSA ,after that I will move to OS (Deadlock).
@minisathyan7405
@minisathyan7405 3 жыл бұрын
Display is not clear..fonts are too small...but teaching way is superb
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Will make sure to have better fonts and larger size in future videos. Thank you for the positive feedback
@lu-dx6oh
@lu-dx6oh 5 жыл бұрын
deadlock your in traffic everyone wants to move but your stuck because someone is blocking the road and you try to make the light but end up blocking the road for someone else , why couldn't my professor use that analogy
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Hehe well I hope you got this one well though 😇🙏
@GOODBOY-vt1cf
@GOODBOY-vt1cf 2 жыл бұрын
8:52
@temitopeoyeyemi899
@temitopeoyeyemi899 5 жыл бұрын
1st like 1st comment lol
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Hehe, thank you so much buddy ✌️😇
Paging in Operating Systems with Example & Working - Memory Management
17:26
Deadlock in Operating System | Introduction
8:03
making IT simple
Рет қаралды 45 М.
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 34 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 115 МЛН
Semaphores
22:51
Neso Academy
Рет қаралды 450 М.
Banker's Algorithm explained
10:02
Computer Science
Рет қаралды 153 М.
Everything you should know about deadlock in three minutes or less
2:50
Lec21 Deadlock handling  methods | Deadlock Prevention | Operating System
31:13
Jenny's Lectures CS IT
Рет қаралды 190 М.
What is deadlock | Necessary Conditions | OS | Lec-63 | Bhanu Priya
12:54
Deadlock Prevention | Deadlock Handling Methods
6:37
making IT simple
Рет қаралды 11 М.