Deadlock to occur in multiprogramming environment

Assignment Help Operating System
Reference no: EM13190512

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: EM13190512

Questions Cloud

Describe about quantum computing : Quantum computing is the latest technological concept in information processing. Your imaginings and musings about where technology may take us after quantum-based computing
Find the value of the calculator after 5 years : the value of a graphing calculator is $225. after 2 years.the value of this calculator is $160. find the value of the calculator after 5 years.
What are the total state and federal unemployment taxes : Morris Leste, owner of Carlson Company, has three employees who earn $431, $503, and $738 per week. What are the total state and federal unemployment taxes that Morris owes for the first 12 weeks of the year and for week 30?
What is the fed funds rate in the banking system : Third National Bank is fully loaned up with reserves of $30,000 and demand deposits equal to $100,000. The reserve ratio is 5%. Households deposit $20,000 in currency into the bank. How much excess reserves does the bank now have.
Deadlock to occur in multiprogramming environment : List the reasons which causes deadlock to occur in multiprogramming environment and discuss how can the deadlock detection algorithm for one resource find out if a deadlock exists in the above sequence
How many possible uniforms are there using one helmet : How many possible uniforms are there using one helmet, one jersey, and one pair of pants?
Find how many trucks are in the parking lot : In a parking lot, there are 84 vehicles. All vehicles are either cars, trucks, or bicycles. There are twice as many trucks as bicycles, and twice as many cars as trucks.
Estimate gdp impact of a positive change in govt spendings : You are told that 75 cents out of every extra dollar pumped into the economy goes toward consumption (as opposed to saving). Estimate the GDP impact of a positive change in government spending that equals $25 billion.
What is the maximum number of regions : What is the maximum number of regions into which a circle can be cut using four lines?

Reviews

Write a Review

Operating System Questions & Answers

  Creating the sample database

nstall DB2 Express-C, construct the model database, and validate the installation and write a short paper describing your experience with the installation.

  Issues with trusted platform module

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

  C language program to remove vowels from text

Create a function isvowel() that test whether or not character is a vowel. Use function in a program that reads standard input document and writes to the standard output document,

  Discussion networking concepts using the osi model

Suppose your manager has asked you to explain the frame format of a typical Ethernet packet. Set-up a written report. Be sure to discuss Manchester encoding and 8B/10B encoding.

  Explain the concepts of consumable and reusable resources

Explain the concepts of consumable and reusable resources

  Evaluating performance improvement options

Processor X has a clock speed of 2Ghz and takes one cycle for integer operations, two cycles for memory operations, and four cycles for floating point operations.

  What is the internal data that allows the os to superwise

What is the internal data that allows the operating system to supervise and control the process? Be specific about what it includes.

  Ddos attack on router

Recently had a DDoS attack on border router. Discuss how would you estimate where the attack came from and what would you put in place to save it from happening again?

  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..

  Hardware and software requirements for ehr systems

Recognize the hardware and software requirements to connect in dissimilar EHR systems. Discuss the solutions that have been suggested through the Federal Government and private organizations.

  Characteristics of atm networks

Determine the characteristics of ATM networks, as well as their advantages and limitations. Discuss the ideas of connection oriented and connectionless protocols.

  A system uses a page size

A system uses a page size of the 4 Kbytes and a program size of 46 kbytes is allocated memory. what is the fragmentation?

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