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
Why do the quadrants in coordinate plane go anti-clockwise?.
tia_tia [17]

Answer:

Quadrants are counter-clockwise because angles are measured counter-clockwise; and angles are measured counter-clockwise so that Cross Product of unit vector in X direction with that in the Y direction has to be the unit vector in the Z direction (coming towards us from the origin).

Explanation:

7 0
3 years ago
The dry unit weight of a soil sample is 14.8 kN/m3.
Jlenok [28]

Answer:

See attachment for completed question

Explanation:

Given that; Brainly.com

What is your question?

mkasblog

College Engineering 5+3 pts

The dry unit weight of a soil sample is 14.8 kN/m3.

Given that G_s = 2.72 and w = 17%, determine:

(a) Void ratio

(b) Moist unit weight

(c) Degree of saturation

(d) Unit weight when the sample is fully saturated

See complete solving at attachment

4 0
4 years ago
1. Design a circuit, utilizing set/reset coils where PB 1 starts Motor 1 and PB2 stops Motor 1. Pressing and releasing either pu
lianna [129]

Answer:

Circuit attached with explanation

Explanation:

Hi Dear,

A circuit is attached for your reference.

When you press "start" PB, the supply reaches the motor starter relay coil "M" that is also in parallel with the "start" PB which allows the motor to remain ON even when you release "start" PB as supply to relay coil is directly from supply "L" through "M".

To stop motor just press "stop" PB and the circuit breaks which de-energize the relay coil and the motor stops.

Hope this finds easy to you.

5 0
3 years ago
What do you think of this schematic diagram?​
Sholpan [36]

Explanation:

A schematic diagram is a picture that represents the components of a process, device, or other object using abstract, often standardized symbols and lines. ... Schematic diagrams do not include details that are not necessary for comprehending the information that the diagram was intended to convey.

5 0
3 years ago
For goods-producing firms, at which of the following levels of resource planning does scheduling for individual subassemblies an
VashaNatasha [74]

Answer:

Disaggregation

Explanation:

In a company it is a way to create operational plans that are focused, either by time or by section.

3 0
3 years ago
Other questions:
  • A high-voltage direct-current (dc) transmission line between Celilo, Oregon and Sylmar, California is 845 mi in length. The line
    15·1 answer
  • A circuit with ____ -diameter connecting wires at a _____ temperature will have the least electrical resistance.
    13·1 answer
  • Help me! Phone Phoebe on 07375410044.
    7·2 answers
  • Which factors influence changes in consumer demands? check all that apply
    8·2 answers
  • What is the relationship between orifice diameter and pipe diameter​
    15·1 answer
  • You could be sued if you injure someone while rescuing them if...
    11·2 answers
  • Hi plz delete this question i had to edit it cuz it was wrong question
    5·1 answer
  • Please please help please with this this is the link for the story PLEASE PLEASE HELP PLEASE PLEASE help please
    7·1 answer
  • Who had launched the highest number of internet satellites as of March 2020?
    14·1 answer
  • What is the importance of the causal link<br> in work accidents?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!