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
luda_lava [24]
3 years ago
9

Consider the following ways of handling deadlock: (1) banker’s algorithm, (2) detect

Engineering
1 answer:
Andrew [12]3 years ago
7 0

Answer:

b

Explanation:

You might be interested in
Write the following decorators and apply them to a single function (applying multiple decorators to a single function): 1. The f
natita [175]

Answer:

Complete question is:

write the following decorators and apply them to a single function (applying multiple decorators to a single function):

1. The first decorator is called strong and has an inner function called wrapper. The purpose of this decorator is to add the html tags of <strong> and </strong> to the argument of the decorator. The return value of the wrapper should look like: return “<strong>” + func() + “</strong>”

2. The decorator will return the wrapper per usual.

3. The second decorator is called emphasis and has an inner function called wrapper. The purpose of this decorator is to add the html tags of <em> and </em> to the argument of the decorator similar to step 1. The return value of the wrapper should look like: return “<em>” + func() + “</em>.

4. Use the greetings() function in problem 1 as the decorated function that simply prints “Hello”.

5. Apply both decorators (by @ operator to greetings()).

6. Invoke the greetings() function and capture the result.

Code :

def strong_decorator(func):

def func_wrapper(name):

return "<strong>{0}</strong>".format(func(name))

return func_wrapper

def em_decorator(func):

def func_wrapper(name):

return "<em>{0}</em>".format(func(name))

return func_wrapper

@strong_decorator

@em_decorator

def Greetings(name):

return "{0}".format(name)

print(Greetings("Hello"))

Explanation:

5 0
4 years ago
A reservoir delivers water to a horizontal pipeline 39 long The first 15 m has a diameter of 50 mm, after which it suddenly beco
allsm [11]

Answer:

The difference of head in the level of reservoir is 0.23 m.

Explanation:

For pipe 1

d_1=50 mm,f_1=0.0048

For pipe 2

d_2=75 mm,f_2=0.0058

Q=2.8 l/s

Q=2.8\times 10^{-3]

We know that Q=AV

Q=A_1V_1=A_2V_2

A_1=1.95\times 10^{-3}m^2

A_2=4.38\times 10^{-3} m^2

So V_2=0.63 m/s,V_1=1.43 m/s

head loss (h)

h=\dfrac{f_1L_1V_1^2}{2gd_1}+\dfrac{f_2L_2V_2^2}{2gd_2}+0.5\dfrac{V_1^2}{2g}

Now putting the all values

h=\dfrac{0.0048\times 15\times 1.43^2}{2\times 9.81\times 0.05}+\dfrac{0.0058\times 24\times 0.63^2}{2\times 9.81\times 0.075}+0.5\dfrac{1.43^2}{2\times 9.81}

So h=0.23 m

So the difference of head in the level of reservoir is 0.23 m.

8 0
3 years ago
Bob and Alice are solving practice problems for CSE 2320. They look at this code: for(i = 1; i &lt;= N; i = (i*2)+17 ) for(k = i
MissTica

Answer:

Alice is correct.

The loop are dependent.

Explanation:

for(i = 1; i <= N; i = (i*2)+17 )

for(k = i+1; k <= i+N; k = k+1) // notice i in i+1 and i+N

printf("B")

This is a nested for-loop.

After the first for-loop opening, there is no block of statement to be executed rather a for-loop is called again. And the second for-loop uses the value of i from the first for-loop. The value of N is both called from outside the loop.

So, the second for-loop depend on the first for loop to get the value of i. For clarity purpose, code indentation or use of curly brace is advised.

8 0
3 years ago
Read 2 more answers
List all possible fracture mechanisms under which the unidirectional composites fail. Briefly explain and describe the related m
professor190 [17]

Answer:

Ususushehehehhuuiiïbbb

Explanation:

Yyshehshehshshsheyysysueueue

7 0
3 years ago
The author states that chemical engineering is one of the most difficult and complex aspects of engineering. Why do you think th
marishachu [46]

Answer:

hope this helps

Explanation:

answers:

1. Chemical engineering is most difficult because it's a mix of physics, chemistry and math

2. Stoichiometry is so important because it shows how materials react, interact and play off each other

3. Yes I think consumers would notice if process control standards were not met. for example medicines, when people take Tylenol or cold pills, if the amount of time it took to kick it becomes longer, people will become aware that the product is not consistent and reliable.

4. i have no idea sorry :(

5. This is explaining how there are rules and regulations to make the workplace safe. it can be accomplished by following those rules and regulations

8 0
3 years ago
Read 2 more answers
Other questions:
  • Main technologies used in atms vending machines game consoles and microwave ovens
    6·1 answer
  • Which of the following ranges depicts the 2% tolerance range to the full 9 digits provided?
    6·1 answer
  • 7. Which power source is an important transition between
    7·1 answer
  • Argon is compressed in a polytropic process with n=1.2 from 120 kPa and 10 °C to 800 kPa in a piston cylinder device. Determine:
    11·1 answer
  • 3/194 The assembly of two 5‐kg spheres is rotating freely about the vertical axis at 40 rev/min with θ = 90°. If the force F whi
    9·1 answer
  • 1. The area of the given triangle is 25 square units. What is the value of x?<br> X+2
    8·1 answer
  • Which type of finish is absorbed into the wood?
    7·1 answer
  • Thermodynamics fill in the blanks The swimming pool at the local YMCA holds roughly 749511.5 L (749511.5 kg) of water and is kep
    6·1 answer
  • A lightbulb has a fixed negative and positive connector. You cannot swap positive and negative sides of a lightbulb in a circuit
    9·2 answers
  • A ____ is either in the pressure reducer or in the downstream side of the system to ensure that the control air pressure does no
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!