1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nesterboy [21]
3 years ago
5

Consider a system having p processes, where each process needs a maximum of m instances of resource type R1. Given that there ar

e r instances of resource type R1 in total, what is the minimum value of r as a function of p and m to ensure that the system is deadlock free?(An explanation in addition to the formula would be very helpful, thanks)
Engineering
1 answer:
Genrish500 [490]3 years ago
5 0

Answer:

Consider a system consisting of 4 resources of same type that are share by 3 processes each of which needs at most two resources.Now we will show that the system is deadlock free.

If the system is deadlocked, it implies that each process is holding one resource and is waiting for one more. Since there are 3 processes and 4 resources, one process must be able to obtain two resources. This process requires no more resources and therefore it will return its resources when done.

Consider a system with m resources of same type being shared by n processes. Resources can be requested and released by processes only on at a time. The system is deadlock free if and only if The sum of all max needs is < m+n .

We can understand the notion of a deadlock from the following simple real-life example.To be able to write a letter one needs a letter pad and a pen. Suppose there in one letterpad and one pen on a table with two persons seated around the table. We shall identify these two persons as Mr. A and Ms. B. Both Mr. A and Ms. B are desirous of writing a letter. So both try to acquire the resources they need. Suppose Mr. A was able to get the letter pad. In the meantime, Ms. B was able to grab the pen. Note that each of them has one of the two resources they need to proceed to write a letter. If they hold on to the resource they possess and await the release of the resource by the other, then neither of them can proceed. They are deadlocked. We can transcribe this example for processes seeking resources to proceed with their execution. Consider an example in which process P1 needs three resources r1 ; r2, and r3 before it can make any further progress. Similarly, process P2 needs two resources r2 and r3 Also, let us assume that these resources are such that once granted, the permission to use is not withdrawn till the processes release these resources. The processes proceed to acquire these resources. Suppose process P1 gets resources r1 and r3 and process P2 is able to get resource r2 only. Now we have a situation in which process P1 is waiting for process P2 to release r2 before it can proceed. Similarly, process P2is waiting for process P1 to release resource r3 before it can proceed. Clearly, this situation can be recognized as a deadlock condition as neither process P1 nor process P2 can make progress. Formally, a deadlock is a condition that may involve two or more processes in a state such that each is waiting for release of a resource which is currently held by some other process.

You might be interested in
For what type of metal is high speed steel drill best suited?
Harrizon [31]
ANSWER-
I believe it would be high speed steel
8 0
3 years ago
Read 2 more answers
1. If a bolt is size 1/2" or larger, then its corresponding wrench size should be____ larger than the bolt size
Mrac [35]

Answer:

  1. C. 1/4"
  2. B. 3/16"

Explanation:

1. For hex bolts, lag bolts, and square bolts, the wrench size is 1/4" larger than the bolt size for 1/2" and 9/16" bolts. For 5/8" bolts and larger, the wrench size is <em>50% larger than the bolt size</em>.

__

2. For 7/16" bolts, the wrench size is 5/8", so is 3/16" larger than the bolt. This holds down to 1/4" bolts, where the wrench size may be 3/8" or 7/16".

3 0
4 years ago
Air enters a compressor at 100 kPa and 25 ⁰C. It is compressed to 2 MPa and exits the compressor at 540 K. The compressor is at
AysviL [449]

Answer:

(a) The reversible work is 207 kJ/kg

(b) The irreversibility rate is -38.39 kJ/kg

Explanation:

State1 : p1 = 100kpa, T1= 25+273 =298k

From air table, h1 =298.18 kJ/kg, s10= 1.69528 kJ/kgK

State 2a:p2=2mpa,t2=540k (actual condition 2a)

h2a= 544.35 kJ/kg,s2a0=2.29906

actual work input to the compressor =wout=h1-h2+Qin

=298.18-544.35+(-150)kJ/kg(- sign indicate heat loss)

=(-246.17)kJ/kg(-ve sign indicates the work is given into the system

a) Reversible work= Win actual - any irreversiblities present

                             =246.17 + irreversibilty

b) irreversibility = T0(Entopy generation Sgen) for air, Sgen

                         =s20-s10-Rln(p2/p1), T0=250C

                         =(25+273)(s2a0-s10-Rlnp2/p1+Qout/Tsurr)

    = 298x[(2.29906-1.69528-0.287kJ/kgK xln(2000kpa/100) + 150 /298]

  = -38.39 kJ/kg

a)Reversible work = Win actual -any irreversiblities present                  

                           =246.17 + irreversibilty

                           =246.17+-38.39

                          =207 kJ/kg

8 0
3 years ago
Select the four parts of the plasma system that
Mandarinka [93]

Answer:

Power

pressure

cup

Temperature

Explanation:

6 0
3 years ago
Question 3 (1 point)
lord [1]

Answer:

axonomeritric projection

this is the right answer

hope this is helpful

7 0
3 years ago
Other questions:
  • 1. Implement the k-means clustering algorithm either in Java or Python. • The program should be executable with at least 3 param
    12·1 answer
  • After a 65 newton weight has fallen freely from rest a vertical distance of 5.3 meters, the kinetic energy of the weight is
    12·1 answer
  • Consider a new peer Alice that joins BitTorrent without possessing any chunks. Without any chunks,she cannot become a top-four u
    9·1 answer
  • In this assignment, you will demonstrate your ability to write simple shell scripts. This is a cumulative assignment that will c
    8·1 answer
  • Air enters the compressor of an ideal gas refrigeration cycle at 7∘C and 35 kPa and the turbine at 37∘C and 160 kPa. The mass fl
    8·1 answer
  • This came off my car earlier today. What is it and what does it do?
    15·2 answers
  • How long did it take the Niagara power plant to be built
    14·2 answers
  • Sơ đồ nguyên lý của một hệ thống lạnh
    11·1 answer
  • In the figure below, block A weighs 20 lb , while block B weighs 10 lb . Friction between the surfaces of the two blocks may be
    9·1 answer
  • Which of the following is NOT an ASE certification? Select one:
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!