Preview

Avoiding Deadlocks in Multi-Tasking Systems

Good Essays
Open Document
Open Document
265 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Avoiding Deadlocks in Multi-Tasking Systems
. Description: Modern operating systems, by permitting more than one data processing task to be performed concurrently, make possible more efficient use of system resources. If a program that is being executed to accomplish a task must be delayed, for example, until more data is read into the computer, performance of some other completely independent task can proceed. The central processing unit can execute another program or even execute the same program to accomplish a different task. In the competition for system resources, such as main storage space or data sets (files), however, all multitasking systems are subject to a condition referred to as deadlock. This condition prevents the affected tasks from being carried out to completion. Several conditions must exist for tasks to become deadlocked. Consider a simple example involving only two tasks that are being performed concurrently. Assume that each task has been allocated a system resource which has been used in partially completing the task. Assume also that allocated resources are released only after completion of the task. If completing each task requires an additional resource and if the additional resource has been allocated to the other task, neither task can be completed; that is, task deadlock exists. Such impasses can arise in many forms involving many tasks, and when task deadlock does occur, there is no known general technique for correcting the condition. Problem: Case histories Acquiring for each job step, in turn, the resources required to This module actually issues the ATTACH macroinstruction, As shown in Figure 3. as the jobs were executed. Requests are fraught with deadlock

You May Also Find These Documents Helpful

  • Good Essays

    Some OS routines directly support application programs as they run and thus must be resident. Other transient routines are stored on disk and read into memory only when needed. Fixed-length partitions can also be used to allocate the set amount of memory that a particular program needs to run. Under dynamic memory management, the transient area is treated as a pool of unstructured free space. When the system decides to load a particular program, a region of memory just sufficient to hold the program is allocated from the pool. Using segmentation, programs are divided into independently addressed segments and stored in noncontiguous memory. Paging breaks a program into fixed-length pages.…

    • 7085 Words
    • 29 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Study Guide

    • 378 Words
    • 2 Pages

    Multiple threads can interfere with each other when sharing hardware resources such as caches or translation lookaside buffers (TLBs). As a result, execution times of a single thread are not improved but can be degraded, even when only one thread is executing, due to lower frequencies or additional pipeline stages that are necessary to accommodate thread-switching hardware.…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    POS-355 Week 5 Operating Systems Analysis 10 Slides with Speaker Notes - Team B new ver.ppt…

    • 400 Words
    • 3 Pages
    Satisfactory 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
  • Good Essays

    Memory management is an important characteristic of an operating system. Main memory is divided into two parts one for resident programs, and the other for the program currently in use. The user part must be subdivided to accommodate multiple processes (Stallings, 2012). When a few processes are in the memory then much of the time all of the processes will have to wait for input /output and the processor will be idle. According to Stallings (2012),. The requirements that memory management is supposed to satisfy are Relocation, Protection, Sharing, Logical organization, and Physical…

    • 573 Words
    • 3 Pages
    Good 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

    The Myth of Multitasking

    • 279 Words
    • 2 Pages

    The Myth of Multitasking, an article by Christine Rosen expresses peoples’ attempt to work like computers; executing multiple tasks concurrently in a shorter time span. Multitasking is the ability to swing attentions in between tasks by evaluating the importance of the tasks on hand and prioritising them.…

    • 279 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    I also tend to avoid multitasking and prefer concentrating on one activity at a time. I agree with you that there are many people who are trying to do the multitasking by texting or calling and driving at the same time, and every time I see them, I feel uncomfortable. I know that multitasking would make completing daily activities more efficient because it could save your time. However, I feel it would disturb me a lot when I try to concentrate on doing something important. I used to like listening to music while studying because I felt it helps me feel less boring, but I found myself only listening to music instead of studying or doing homework at some point. I agree that exercising and listening to music together would not disturb…

    • 185 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    multitasking

    • 308 Words
    • 2 Pages

    When we multitask, we harm ourselves and don't do things as well as we would if we were focused on a single task. According to the author, "a recent article published in the science journal Neuro Image revealed that when we attempt demanding task simultaneously,we ended up doing neither as well as we should because our brains have cognitive limits". In other words,the author is trying to say that is better to do one thing at a time than multitasking because the brain will work better, and if we are multitasking,we will have a worse memory. For example, sometimes at my job, I have to multitask. This made my memory worse because I try to do three or more jobs at once, like holding wires, connecting them, connecting outlets talking on the phone, and making sure other people are doing their job right, and at the end of the day, i forget to do an important job. Just like tge article says, it is better to have our brain concentrated on once thing at the time to do a good job and avoid any harm to ourselves or others.…

    • 308 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Multitasking Experience

    • 399 Words
    • 2 Pages

    In the past years, people have been using the term Multitasking which is doing several tasks at once. Our brain is kind like a computer, but we need to be careful because when you set your brain to do several things because this just make burn your mind or “slow you down”. Based on my experience when I get to the house from picking up the kids from school, I always have to check on them because they start running into the house and fighting each other. While I'm doing the dinner, washing dishes also on the phone I feel like my mind is going to explode because is many things to worry at once. However, I do not think I'm the only who feel this way, so everyone that has to do several tasks at work goes crazy.…

    • 399 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    multitasking

    • 656 Words
    • 3 Pages

    NYTimes.com. The New York Times - Breaking News, World News & Multimedia. Retrieved October 18, 2013, from http://www.nytimes.com/2008/10/25/business/yourmoney/25shortcuts.html?pagewanted=all…

    • 656 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Real Life Exercise

    • 638 Words
    • 3 Pages

    Give at least two “real life” examples (not related to a computer system environment) of each of these concepts: deadlock, starvation and race. Describe how the deadlocks could be resolved.…

    • 638 Words
    • 3 Pages
    Good 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

    Answer Scheme for Test 2 Operating System 1. a) What is synchronization? (1m) - Synchronization is an act of ensuring that independent processes/threads begin to execute a designated block of code at the same time b) How does a race condition happen? (2m) - Incorrect timing in accessing same shared resource c) Explain TWO possible solutions of handling critical section?(2m) - Disabling interrupt prevents processes/threads to be in the critical section at the same logical time - Software solution : locking mechanism, semaphore, monitor d) Draw the graph reduction (with your explanation) when there is no deadlock.(4m) - R1 and R3 are reusable resource graph (RRG) whereas R1 is a consumable resource graph(CRG) Order of reduction: i) Assign R1 to p1, p1 executes and terminates. One unit of R2 and 2 units of R3 are available.…

    • 935 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Case Study on Windows Xp

    • 1510 Words
    • 7 Pages

    The history of windows operating system starts from 1976 when Bill gates and Paul Allen found Microsoft Corp.…

    • 1510 Words
    • 7 Pages
    Powerful Essays