In this video, we explore various methods to handle deadlock situations in computer systems. Deadlocks can severely impact the performance and stability of software, so it's crucial to understand how to prevent, avoid, detect, and recover from them. We'll cover key concepts such as deadlock prevention techniques, safe states, resource allocation graphs, and more. Whether you're a computer science student or a software developer, this comprehensive guide will help you grasp the essentials of deadlock management. Don't forget to like, comment, and subscribe for more tech tutorials!
---------------------------------------------
#Chapter4
#Deadlock
#VariousMethodsToHandleDeadlock.
Deadlock ignorance (ostrich method)
Deadlock prevention.
Deadlock avoidance (banker’s algorithm)
Deadlock detection and recovery.
#DeadlockIgnorance :
In this method when deadlock occur in the system then operating system just ignore the deadlock.
This method is used because, if we add one more algorithm/ patch of code, in our operating system then the performances of the system get decreased.
And also that the deadlock condition occur very rarely.
Restart the system that is deadlock ignorance.
This is called ostrich method, because when sand storm comes ostrich put its head in ground, and think that there is no sand storm.
#DeadlockPrevention :
This method means that we try to find a way that we do not get any deadlock scenario, before the deadlock occurs.
It can be followed by removing the following conditions (any one)
Mutual exclusion.
No preemption
Hold and wait
Circular wait
#DeadlockAvoidance
In this method when we give resource to a process than we check that if it is safe or not to give that resource to that process.
This is done by Banker’s algorithm
#DeadlockDetectionAndRecovery
In this method we try to detect that is there any deadlock present or not in the system. If the deadlock is present than we try to recover our system form it.
We can do recovery by
Kill the processes or process (But this will decrease the performance of the system)
Resource preemption from a process.
#Deadlock #ComputerScience
#OperatingSystem #OS #asadnomanee #banglalecture #CSE
#Lecturelia #MBSTU #MBSTU_CSE
#lecturelia #banglatutorial #bangla