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
If you log into the admin account on windows 10, will the admin be notified ? ​
professor190 [17]

Answer:

Just message the Admin,

Ok.

6 0
3 years ago
Read 2 more answers
A 2-cm-diameter vertical water jet is injected upward by a nozzle at a speed of 15 m/s. Determine the maximum weight of a flat p
Ede4ka [16]

Answer:58.28 N

Explanation:

Given data

dia. of nozzle \left ( d\right )=2 cm

initial velocity\left ( u\right )=15 m/s

height\left ( h\right )=2m

Now velocity of jet at height of 2m

v^2-u^2=2gh

v^2=15^2-2\left ( 9.81\right )\left ( 2\right )

v=\sqrt{185.76}=13.62 m/s

Now\ forces\ on\ plate\ are\ weight\left ( Downward\right ) and jet\ force\left ( upward\right )

equating them

W=\left ( \rho Av\right )v

W=10^{3}\times \frac{\pi}{4}\left ( 0.02\right )^2\times 13.62^2

W=58.28 N

7 0
4 years ago
Type the correct answer in the box. Spell all words correctly.
AVprozaik [17]

Answer:

Mechanical engineer? Thats my guess I didnt have alot of options sorry if I am wrong

Explanation:

3 0
4 years ago
6.1-2. Diffusion of CO, in a Binary Gas Mixture. The gas CO2 is diffusing at stcady state through a tube 0.20 m long having a di
zzz [600]

Answer:

Heat flux of CO₂ in cgs

                 = 170.86 x 10⁻⁹ mol / cm²s

SI units

       170.86 x 10⁻⁸ kmol/m²s  

Explanation:

4 0
3 years ago
The yellow rectangle area is 25% (or 1/4) the area of the blue rhombus. The height (H) of the yellow rectangle is twice as long
Kitty [74]

Answer:

I don't know sry

Explanation:

6 0
3 years ago
Other questions:
  • If the 1550-lb boom AB, the 190-lb cage BCD, and the 169-lb man have centers of gravity located at points G1, G2 and G3, respect
    11·1 answer
  • The entire population of a given community is examined, and all who are judged to be free from bowel cancer are questioned exten
    12·1 answer
  • Disc brake rotors that are too thin cannot handle as much heat and will experience ___________.
    6·1 answer
  • Let CFG G be the following grammar.
    7·2 answers
  • A heat pump with refrigerant-134a as the working uid is used to keep a space at 25C by absorbing heat from geothermal water that
    5·1 answer
  • Example 12: Write an algorithm and draw a flowchart to calculate
    12·1 answer
  • (a) calculate the moment at point "c", where point "c" is the square 3'' below the centroid
    13·1 answer
  • What happens if you leave your car on while pumping gas
    8·1 answer
  • There are signs of oil spray on the compressor clutch hub and nearby underhood areas. Technician A says that a faulty compressor
    11·1 answer
  • Which of following is not malicious ?<br> Worm<br> Trogan Horse<br> Driver<br> Virus
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!