Deadlock a- given the sequence of resource requests below

Assignment Help Operating System
Reference no: EM13380231

Deadlock:

A- Given the sequence of resource requests below, draw the resource allocation graph and answer the following questions:
- Process A is holding resource S and is requesting resource X.
- Process B is holding resources X, Y and is requesting resource W.
- Process C is holding resource W and is requesting resource Z.
- Process D is holding resource Z and is requesting resource Y and S.

1- List the reasons which causes deadlock to occur in multiprogramming environment.
2-Discuss how can the deadlock detection algorithm for one resource find out if a deadlock exists in the above sequence?
3- List the deadlocked processes.
4- Discuss at least two possible recovery solutions. Which one is better? Why?
5- List the recovery process-scheduling sequence corresponding to each solution given in
the question above.

B- Name a proper method to be used for each of the following cases: Banker's algorithm
- Deadlock avoidance for multiprogramming system. ------- preemption--------------------
- Deadlock recovery for real-time system. ---------------------------
- Disk head scheduling for busy system. ---------------------------
- File system implementation for batch applications. ---------------------------
- Data transfer method for Database applications. ---------------------------

C- Consider a system state which consists of the set of running processes A, B, C, D, and E. Assume that the system has four different types of resources R1, R2, R3, and R4. The total numbers of resource copies available in the system are: 6, 4, 4, and 2 in order. The maximum claim and the current resources allocation tables are given below.

Process

R1

R2

R3

R4

A

3

2

2

1

B

4

2

2

2

C

2

2

1

0

D

3

2

2

2

E

2

3

1

1

Maximum Claim Table

Process

R1

R2

R3

R4

A

2

0

1

1

B

1

1

1

0

C

1

1

0

0

D

1

0

1

0

E

0

1

0

1

Current Allocation Table

1- List the resource allocation table for each individual resource type.
2- Is the current system state safe? Why?
3- Answer the above question if D requests a copy of R4 and another copy of R2.
Answer question number 2above if C requests a copy of R1 and at the same time B reserved a copy of R3.

Reference no: EM13380231

Questions Cloud

Tasks1design the software architecture of a web auctioning : tasks1.design the software architecture of a web auctioning site.2.design a database for storing information about
Given the following description answer the questions belowa : given the following description answer the questions below.a hard real-time rt system is one where the failure to
1 the project could fail because the cost of a key : 1. the project could fail because the cost of a key component has increased and we could build a product that does not
Write an introspective capstone paper expressing your views : write an introspective capstone paper expressing your views aboutinformation use in todays society. this will be
Deadlock a- given the sequence of resource requests below : deadlock a- given the sequence of resource requests below draw the resource allocation graph and answer the following
A- please answeronly two ofnbsp the following questions : a- please answeronly two ofnbsp the following questions that are related to the file
In a table forma compare between segmentation and virtual : in a table forma compare between segmentation and virtual memory organizations in terms of the memory structure
Problem 1you have four web servers that are serving static : problem 1you have four web servers that are serving static web pages. you want to prevent them from communicating with
1 this question relates to section 2 genetic algorithma : 1. this question relates to section 2 genetic algorithma heredna -gt channel assigned to a wireless linkindividual -gt

Reviews

Write a Review

Operating System Questions & Answers

  Compute average seek time and rotational latency

Seek time 1 ms for every 100 tracks traversed. Initial track position is 0. Compute average seek time & rotational latency.

  Multitasking scheduling schemas

Think about a particular system that does not have an interrupting clock. The only way a procedure can lose the processor is to voluntarily surrender it.

  What is file system reliability

What is file system reliability and explain the roles of error handling, back up, and file checker methods in supporting the file system reliability?

  What are the formulas for these worst case time complexities

What are the formulas for these Worst Case Time Complexities?

  How operating system is clearly superior for any application

Consider the advantages and disadvantages of each major operating system that Amy might use on the Web server. If you don't think that one operating system is clearly superior for this application, describe why.

  Three-process 4 resource system

Give an example of a three-process 4 resource system that is in an unsafe state. Explain why it is in an unsafe state. How many more resources would need to be added to make it a safe state?

  Intermediate level tasks below is a simple program it

intermediate level tasks below is a simple program. it creates 2 threads. the first thread keeps printing out x on the

  Draw curves for throughput-delay and power

Assume two hosts A and B are connected via router R. A-R link has infinite bandwidth; A-R link has infinite bandwidth; draw curves for throughput, delay, and power, each as function of load.

  Explain the difference between a low-level format

Why are there so many DVD formats?

  Explain the format of the processor''s logical address

What is the format of the processor's logical address. What is the length and width of the page table (disregarding the "access rights" bits)

  Describe the ongoing maintenance that will be required

Describe all the necessary equipment and explain the costs involved in the creation of the system and describe the ongoing maintenance that will be required

  Questiona process is a program under execution and as it

questiona process is a program under execution and as it executes it changes state. the state of a process is defined

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