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
aleksklad [387]
3 years ago
8

2. Consider Dekker’s algorithm written for an arbitrary number of processes by changing the statement executed when leaving the

critical section from: turn = 1 - i /* i.e., P0 sets turn to 1 and P1 sets turn to 0 */ to turn = (turn +1) % n Evaluate the algorithm when the number of concurrently executing processes is greater than two.
Engineering
1 answer:
neonofarm [45]3 years ago
4 0

Answer:

Algorith does not work.

Explanation:

One of the ways to obtain the Dekker Algorithm is through a change in the declaration, that is, a declaration that can be executed at the exact moment it leaves the critical section. This way it is possible that the statement,

turn = 1-i / * P0 sets turn to 1 and P1 sets turn 0 * /

It can be changed to,

turn = (turn +1) \% n / * n = number or processes * /

The result will allow to define if it works or not, that is, if it is greater than 2 the algorithm will not be able to work.

Given this consideration we can say that,

<em>- The dead lock does not occur, because the mutual is imposed (if a resource unit has been assigned to a process, then no other process can access that resource).</em>

<em>- There is the possibility of starving if the shift is established in a non-contentious process.</em>

Directly it can be concluded that there is a possibility of starvation so the algorithm could not work, despite the fact that mutual exclusion guarantees that a dead block does not occur.

You might be interested in
Find the magnitude of the two pulling forces P and Q when their resultant is 50 N at 20° with Q. P 20°​
morpeh [17]
Two forces P and Q whose resultant is 10Newton are at right angles to each other. If P makes 30 degrees with resultant.Show me the workings of the magnitude of Q in Newton and the diagram of the vectors.
7 0
3 years ago
Explain how the objects in a battery work with its components
kotykmax [81]

Answer: Batteries have three parts

Explanation:

Batteries have three parts, an anode , a cathode , and the electrolyte. The cathode and anode the positive and negative sides at either end of a traditional battery are hooked up to an electrical circuit. The chemical reactions in the battery causes a build up of electrons at the anode.

3 0
3 years ago
A(n) BLANK authenticates various specimens in a collection for a museum.
mezya [45]

Answer:

Curators

Explanation:

4 0
3 years ago
Identify the true statements about checking resistors with an ohmmeter. (Check all that apply.) Multiple select question. When c
ipn [44]

Answer:

Please find the answer in the explanation.

Explanation: To Identify the true statements about checking resistors with an ohmmeter,

When checking resistance in a circuit, there should be parallel resistance paths present. Because any circuit or resistors to be measured has to be shunted. That is connecting it in parallel so that small amounts of current can pass through the circuit.

The ohmmeter leads are connected across the resistance to be measured. An ohmmeter has its own voltage source.

The ohmmeter makes use of batteries as power source.

5 0
3 years ago
For high temperature deformation, the bigger the gran sine, the higher the creep rate. a)-True b)- False
Gnom [1K]

Answer:

The given statement is False.

Explanation:

This is because at high temperature the creep rate depends on grain boundary area, increasing with an increase in grain boundary area thus decreasing the grain size. Thus at higher temperatures, grain size has opposite effect , the bigger the grain size the slower the slower is the creep rate, the larger the grain boundary area.

8 0
3 years ago
Read 2 more answers
Other questions:
  • To operate a vehicle in Florida, you must
    10·2 answers
  • Two kilograms of oxygen fills the cylinder of a piston-cylinder assembly. The initial volume and pressure are 2 m3 and 1 bar, re
    6·2 answers
  • Example 1: the two dimensional points P1(0,0) and P2(1,0) and the two tangents P', (1,1) and P2 (0,-1).find the equation of the
    8·1 answer
  • A frying pan is connected to a 150-volt circuit. If the resistance of the frying pan is 25 ohms, how many amperes does the fryin
    12·1 answer
  • Fill in the blank with the correct response.
    12·1 answer
  • Which of the following qualities of large man-made structures is unique to dams? They span water bodies They generate electricit
    15·2 answers
  • O que é necessário se conhecer para a determinação de uma força concentrada em um ponto?
    14·1 answer
  • What are the coventional representative of automation
    15·1 answer
  • While discussing possible causes of black smoke from the exhaust of an older heavy-duty Diesel engine, technician a says that bl
    10·1 answer
  • Draw isometric projection of a pls help
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!