• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Fundamental » OS » How Deadlock Prevention & Avoidance
Next →
← Prev

How Deadlock Prevention & Avoidance

By Dinesh Thakur

After Detecting the Deadlock, we must have to Apply Some Conditions for Removing a Deadlock. After Examining the Four Conditions which Occurs deadlock. Means Detect how and why a deadlock has occurred. Avoidance and Prevention means handle the Deadlock or Remove the Deadlock. Or Make a Program to handle the Deadlock. Various Ways for handing a deadlock.

1) Hold & Wait: -The Process those are using the System Resources, after using the Resources after Completion the Process, we can force them to Release the Resources. Means Process those are on Waiting Stage, will be not able to use the System Resources. Means the System Resources are Available to only that Process; those are running on the System.

If a Process on the Wait State means if he is waiting for Some Input and Output or For CPU to Execute the Process. Then System Resources are not available to Process. All the System Resources are Allocated to the Various Process by using Some Priority or System Resources are Allocated to different Process according to Some Time Cards.

2) Remove per-claim:  per-claim means Some Processes Consumes System Resources are Consumed in advance for their Processing. Means currently at this Time they are on the Waiting stage or they are Running some Process. But they allocate the System Resources in advance Manner. So this will also Create Problem for the other Process. So avoid per-claiming. Means all the System Resources are not available in advance means all the processes will Allocate Resources when they are Executed by the CPU.

3) Maintain Available Resources: There must be a Table which contains all the Entries of the System Resources those are allocated to the various Processes. In this Table we can got the information, that which Resources is Currently using by which Process. And the Table must be Updated means if after performing the Operation, if a System Resource if free, then the table must contains the Entry for that Resource State.

There must be a Resource Request and Release Request means when a Process is Requesting for a System Resource. Then table must contain the information, which Process is Requesting and the Total Time which a Process will use the System Resource.

The Resource Release is used when the Process completed his Work. So that all the Requests and Releasing of System Resources then the table must be updated after Some Time.

You’ll also like:

  1. Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA)
  2. How to Deadlock Detect and Recover.
  3. What is Deadlock ? – Definition
Next →
← Prev
Like/Subscribe us for latest updates     

About Dinesh Thakur
Dinesh ThakurDinesh Thakur holds an B.C.A, MCDBA, MCSD certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps.

Dinesh Thakur is a Freelance Writer who helps different clients from all over the globe. Dinesh has written over 500+ blogs, 30+ eBooks, and 10000+ Posts for all types of clients.


For any type of query or something that you think is missing, please feel free to Contact us.


Primary Sidebar

Operating System

Operating System & Types

    • Operating System - Software
    • Operating System - Definition
    • Operating System - Types
    • Operating System - Functions
    • Operating System - Characteristics
    • Operating System - Services
    • Operating System - Multiprogramming
    • Operating System - Time Sharing
    • Operating System - Multiprocessor
    • Operating System - Distributed
    • Operating System - Batch Processing
    • Operating System - Real-Time
    • Operating System - Multitasking
    • Operating System - Network(NOS)
    • Operating System - Multi-User
    • Operating System - Batch
    • Operating System - External Structure
    • Operating System - MS-DOS
    • Operating System - System Software
    • Operating System - Kernel
    • Operating System - Main Functions

Operating System Scheduling

    • Operating System - Scheduling
    • Operating System - Disk Scheduling
    • Operating System - Process
    • Operating System - Round Robin
    • Operating System - CPU Scheduling
    • Operating System - (FCFS) Scheduling
    • Operating System - Preemptive
    • Operating System - Priority Scheduling

Memory

    • Operating System - Memory
    • Operating System - Cache Memory
    • Operating System - Virtual Memory
    • Operating System - Memory Partition

Operating System - What is

    • Operating System - Booting
    • Operating System - Files & Types
    • Operating System - Shell
    • Operating System - Real Time System
    • Operating System - Demand Paging
    • Operating System - Multi Tasking
    • Operating System - Parallel Processing
    • Operating System - Swapping
    • Operating System - Spooling
    • Operating System - App Software
    • Operating System - Dead Lock
    • Operating System - Batch Processing
    • Operating System - Semaphore
    • Operating System - Variable Partitioned
    • Operating System - File System
    • Operating System - Cipher Text
    • Operating System - OS/2
    • Operating System - CONFIG.SYS
    • Operating System - Segmentation
    • Operating System - CLI

Some Other Tutorials

  • OS - Application Vs System Software
  • OS - Commands in DOS
  • OS - Process States
  • OS - System Components
  • OS - Inter-Process
  • OS - Computer Languages
  • OS - System Architecture
  • OS - Directory Structure
  • OS - Process Management
  • OS - Deadlock Prevention
  • OS - Thread Vs Process
  • OS - File Sharing

Other Links

  • Operating System - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW