Preview

Deadlock

Satisfactory Essays
Open Document
Open Document
426 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Deadlock
Deadlock
Jack Pressler
POS/355
11-25-2013
Liane Monaco

Deadlock

Deadlock can occur when the permanent blocking of a set of processes compete for the same system resources. A set of processes is deadlocked when each process in the set is blocked awaiting an event that can only be triggered by another blocked process in the set. Deadlock is permanent because none of the events are ever triggered. Three conditions must take place for a deadlock to take place. The first one is Mutual exclusion, which is a single process that uses one resource at a time. No process may access a resource unit that is being utilized by another process. Hold and wait is the second condition, it can be described as one process that holds assigned resources while waiting for another assignment. Finally, No preemption occurs when no resource can be forced or removed from a process holding it. These three conditions are necessary for a deadlock to exist. However, a fourth condition is required for an actual deadlock to take place. Circular wait occurs when a closed chain of processes exists, and each process holds one or more resources needed by the next process in the chain. This condition is an immediate result of the first three. Below is a self-explanatory illustration of Deadlock.

Deadlock blocks a set of processes that competes for system resources. This can be permanent unless the OS takes action, such as forcing one or more processes to backtrack. Deadlock may involve consumable or reusable resources. A reusable resource is one that is not depleted by use. A consumable resource is one that is destroyed when it is obtained by a process. There are three approaches to dealing with deadlock: prevention, detection, and avoidance. Prevention guarantees that deadlocks will not happen. Detection is required if the OS is willing to grant resource requests; the OS checks for deadlocks and takes action to break the deadlock. Avoidance involves the analysis of

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1310 Unit 1 Study Guide

    • 378 Words
    • 2 Pages

    The simplest type of multithreading occurs when one thread runs until it is blocked by an event that normally would create a ___________…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    One of the key functions of an operating system is the process management. Linux OS system is very dynamic with constantly changing computing needs. These needs tend to be centered on the process. Processes can be either long or short lived, so managing these processes is very important. Linux incorporates a very flexible design which contains a separate unit to take on the process management task. In a Linux operating system processes are created and represented by an allocated task_struct.…

    • 749 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 3 Os

    • 1341 Words
    • 6 Pages

    +• Synchronization: With multiple active processes having potential access to shared address spaces or shared I/O resources, care must be taken to provide effective synchronization. Synchronization is a facility that enforces mutual exclusion and event…

    • 1341 Words
    • 6 Pages
    Good Essays
  • Better Essays

    BIS 320 Week 2 Asm

    • 1188 Words
    • 5 Pages

    An operating system that is out dated, can present computer software freeze ups, loss of data, and eventually loss of productivity.…

    • 1188 Words
    • 5 Pages
    Better Essays
  • Good Essays

    How Did the Stalemate End?

    • 2271 Words
    • 10 Pages

    The stalemate came about at Christmas 1914 along the Western Front. From there the different countries fought each other in different battles and tried to outflank the other. By March 1918 the stalemate was broken. In this question I will explain why the war ended and why Germany was finally beaten.…

    • 2271 Words
    • 10 Pages
    Good Essays
  • Good Essays

    Operating systems has come a long way and a much improvement in the way each system built. This paper will discuss the four common types of distributed computer system failures, which are crash failure also known as operating system failure. Hardware failure. Omission failures and byzantine failures. Included in the discussion are failures, which can also occur in a centralized computer system.…

    • 608 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Filures Paper

    • 498 Words
    • 2 Pages

    This paper will take a look at failures that occur in distributed and centralized systems. Also, it will discuss proper isolation processes, and the procedures that need to be taken to fix these failures.…

    • 498 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    IT 600 Module One Lecture

    • 1256 Words
    • 5 Pages

    Since a CPU can run only one process at a time, process management must handle the…

    • 1256 Words
    • 5 Pages
    Better Essays
  • Good Essays

    The first of the four failures in the distributed system is Fail-Stop and this is when a halting failure occurs with a type of notification to other components, and this can be when a network file server is in the process of telling its clients it is about to stop executing, and in the process the internal state and the contents connected to the volatile storage can be lost.…

    • 998 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    If we can't find a solution that would benefit both parties, we agree to disagree.…

    • 312 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    linux chap 1

    • 1088 Words
    • 5 Pages

    The use of costly resources can be maximized and the cost per user can be minimized—the primary objectives of a multiuser operating system.…

    • 1088 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    In politics, gridlock or deadlock or political stalemate refers to a situation when the laws that satisfy the needs of the people are difficult to pass. The gridlock occurs when the proportion of bills passed and the legislative agenda decreases. In addition, the gridlock also can occur when the President and the majority in one or both houses of Congress are of different political parties. Achieving consensus on the new law is difficult when there are parties with such opposition point of views. The main causes Gridlock in Congress might be the worrying about the carry on indefinitely of new laws, the competition over "winning" and "losing.", and the fearing of change.…

    • 1383 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    3. S1 has a shared lock on D1 and S2 attempts to procure an exclusive lock on D1.…

    • 440 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Deadlock can arise if four conditions hold simultaneously: Mutual exclusion: only one process at a time can use a resource. If another process requests that resource, the requesting process is delayed until the resource is released; Hold and wait: a process holding at least one resource is waiting to acquire additional resources held by other processes; No preemption: a resource can be released only voluntarily by the process holding it, after that process has completed its task; Circular wait: there exists a set {P0, P1, …, Pn} of waiting processes such that P0 is waiting for a resource that is held by P1, P1 is waiting for a resource that is held by P2, …, Pn–1 is waiting for a resource that is held by Pn, and Pn is waiting for a resource that is held by P0…

    • 1184 Words
    • 5 Pages
    Good Essays
  • Good Essays

    1. It must ensure that the memory spaces of processes are protected so that unauthorized access is prevented.…

    • 2963 Words
    • 12 Pages
    Good Essays