Explain deadlock-avoidance system

Assignment Help Operating System
Reference no: EM132545

Question 1:

A process is a program under execution and as it executes, it changes state. The state of a process is defined in part by the current activity of that process.

a) Explain the five states in which a process can be, including an explanation of the various transitions between the different states.

b)  Each process is represented  in the operating system by a Process Control Block (PCB). Describe five piece of information which can be found the Process Control Block.

c) In terms of process management, the kernel has to take care of  Context Switching.

i.  Describe the term context switch.  
ii. Describe how context switching takes place. (use a diagram, with two processes) 
iii.  Why is context-switch time considered as overhead?

Question 2:

In a deadlock, processes never finish executing and system resources are tied up, preventing other jobs from starting. Deadlocks will be characterised by a set of conditions.

a) Explain the four necessary conditions that must hold simultaneously in a system for a deadlock situation to arise.

b) One way of handling deadlock situations is by using a deadlock-avoidance algorithm: Consider that a system always require additional information about how resources are being requested for each process before making a decision on whether to grant the request or not to grant the request. One possible reason for not granting the request is because it can put the system in an unsafe state.

What is the difference between a safe state and an unsafe state in a deadlock-avoidance system?

Reference no: EM132545

Questions Cloud

Multilevel feedback queues and fcfs : What (if any) relation holds between the following pairs of sets of algorithms (a) Priority and SJF (b) Multilevel feedback queues and FCFS
Explain the client-server architecture : What are the three different categories of command, support your answer by giving three examples. Give three good reasons, with valid explanation, to justify why partitioning hard disk provides a variety of advantages. Explain the client/server..
What is the main advantage of multiprogramming : What is the main advantage of multiprogramming How does the distinction between the monitor mode and user mode function as a rudimentary form of protection (security) system What is the difference between a trap and an interrupt? What is the u..
Explain deadlock-avoidance system : What is the difference between a safe state and an unsafe state in a deadlock-avoidance system?
Explain the concepts of consumable and reusable resources : Explain the concepts of consumable and reusable resources
Write a program use a matrix represent : Write a Program Use a matrix represent.
How to set up or recover cybersecurity : How to set up or recover cybersecurity.
Write a function that creates a cell and structure array : Write a function that creates a cell and structure array.

Reviews

Write a Review

Operating System Questions & Answers

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Give three technical merits of unix

Give three technical merits of UNIX b) Differentiate between "clustered systems" and "real-time systems". c) Describe the purpose of using "trust relationship"

  Discuss and provide examples of mutual exclusion

Discuss and provide examples of the following concurrency issues associated with an OS: 1. Mutual exclusion 2. Deadlock 3. Starvation

  Disk scheduling algorithm

Simulation of Elevator and Shortest Seek Time First

  Deadlock avoidance and scheduling

Deadlock Avoidance and Scheduling

  Deadlock avoidance

i. Deadlock avoidance ii. Deadlock prevention and  iii. Deadlock detection

  Stand alone child process

Forking the child process

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Define critical path and cpm

Define Critical Path and CPM. Define Networks & Network scheduling

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd