Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

deadlock prevention in os | deadlock prevention in operating system

Автор: Sudhakar Atchala

Загружено: 2019-10-03

Просмотров: 149189

Описание:

#deadlockpreventioninos #operatingsystemlectures #operatingsystemplaylist

Deadlock Prevention

If we simulate deadlock with a table which is standing on its four legs then we can also simulate four legs with the four conditions which when occurs simultaneously, cause the deadlock.

However, if we break one of the legs of the table then the table will fall definitely. The same happens with deadlock, if we can be able to violate one of the four necessary conditions and don't let them occur together then we can prevent the deadlock.

Let's see how we can prevent each of the conditions.
1. Mutual Exclusion

Mutual section from the resource point of view is the fact that a resource can never be used by more than one process simultaneously which is fair enough but that is the main reason behind the deadlock. If a resource could have been used by more than one process at the same time then the process would have never been waiting for any resource.

However, if we can be able to violate resources behaving in the mutually exclusive manner then the deadlock can be prevented.

2. Hold and Wait

Hold and wait condition lies when a process holds a resource and waiting for some other resource to complete its task. Deadlock occurs because there can be more than one process which are holding one resource and waiting for other in the cyclic order.

However, we have to find out some mechanism by which a process either doesn't hold any resource or doesn't wait. That means, a process must be assigned all the necessary resources before the execution starts. A process must not wait for any resource once the execution has been started.
3. No Preemption

Deadlock arises due to the fact that a process can't be stopped once it starts. However, if we take the resource away from the process which is causing deadlock then we can prevent deadlock.

This is not a good approach at all since if we take a resource away which is being used by the process then all the work which it has done till now can become inconsistent.

Consider a printer is being used by any process. If we take the printer away from that process and assign it to some other process then all the data which has been printed can become inconsistent and ineffective and also the fact that the process can't start printing again from where it has left which causes performance inefficiency.
4. Circular Wait

To violate circular wait, we can assign a priority number to each of the resource. A process can't request for a lesser priority resource. This ensures that not a single process can request a resource which is being utilized by some other process and no cycle will be formed.

deadlock prevention in os | deadlock prevention in operating system

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Deadlock Avoidance part 1 | deadlock avoidance using resource allocation graph algorithm

Deadlock Avoidance part 1 | deadlock avoidance using resource allocation graph algorithm

Methods For Handling Deadlocks

Methods For Handling Deadlocks

deadlock characterization part 1 | necessary conditions for deadlock

deadlock characterization part 1 | necessary conditions for deadlock

Mutex Locks in Operating Systems Explained Simply! || Operating System

Mutex Locks in Operating Systems Explained Simply! || Operating System

КАК УСТРОЕН TCP/IP?

КАК УСТРОЕН TCP/IP?

Вся IT-база в ОДНОМ видео: Память, Процессор, Код

Вся IT-база в ОДНОМ видео: Память, Процессор, Код

Google Gemini — это новая Siri. Что это значит для владельцев техники Apple? Техно новости недели

Google Gemini — это новая Siri. Что это значит для владельцев техники Apple? Техно новости недели

Operating Systems(OS) in Telugu

Operating Systems(OS) in Telugu

Lec21 Deadlock handling  methods | Deadlock Prevention | Operating System

Lec21 Deadlock handling methods | Deadlock Prevention | Operating System

Что такое TCP/IP: Объясняем на пальцах

Что такое TCP/IP: Объясняем на пальцах

Microsoft begs for mercy

Microsoft begs for mercy

deadlock characterization part 2 | resource allocation graph in operating system | os

deadlock characterization part 2 | resource allocation graph in operating system | os

World's Cheapest vs Most Expensive Laptop!

World's Cheapest vs Most Expensive Laptop!

DEADLOCKS IN OPERATING SYSTEM || CONDITIONS FOR DEADLOCKS || DEADLOCK || OPERATING SYSTEM

DEADLOCKS IN OPERATING SYSTEM || CONDITIONS FOR DEADLOCKS || DEADLOCK || OPERATING SYSTEM

L-4.4: Deadlock Handling Methods and Deadlock Prevention | Operating System

L-4.4: Deadlock Handling Methods and Deadlock Prevention | Operating System

Operating Systems Course for Beginners

Operating Systems Course for Beginners

Маска подсети — пояснения

Маска подсети — пояснения

Кто пишет код лучше всех? Сравнил GPT‑5.2, Opus 4.5, Sonnet 4.5, Gemini 3, Qwen 3 Max, Kimi, GLM

Кто пишет код лучше всех? Сравнил GPT‑5.2, Opus 4.5, Sonnet 4.5, Gemini 3, Qwen 3 Max, Kimi, GLM

Lec23 Deadlock Avoidance: Banker's Algorithm with example | Operating System

Lec23 Deadlock Avoidance: Banker's Algorithm with example | Operating System

I Read Honey's Source Code

I Read Honey's Source Code

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com