answer.
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
Kobotan [32]
2 years ago
10

Race conditions are possible in many computer systems. Consider an online auction system where the current highest bid for each

item must be maintained. A person who wishes to bid on an item calls the bid(amount) function, which compares the amount being bid to the current highest bid. If the amount exceeds the current highest bid, the highest bid is set to the new amount. This is illustrated below:double amount = 0.0;void bid(double amount) { if (amount > highestBid) highestBid = amount;}Describe how a race condition is possible in this situation (you may describe it with some scenario)?What might be done to prevent the race condition from occurring? (you may just modify the code using "acquire()" and "release()" statements)

Engineering
1 answer:
kumpel [21]2 years ago
5 0

Answer:

See attached picture.

Explanation:

You might be interested in
13–27. The conveyor belt is moving downward at 4 m>s. If the coefficient of static friction between the conveyor and the 15-k
Feliz [49]

Answer:

See explanation for step by step procedure to get answer.

Explanation:

Given that:

The conveyor belt is moving downward at 4 m>s. If the coefficient of static friction between the conveyor and the 15-kg package B is ms = 0.8, determine the shortest time the belt can stop so that the package does not slide on the belt.

See the attachments for complete steps to get answer.

4 0
2 years ago
49. A solenoid coil with a resistance of 30 ohms and an inductance of 200 milli-henrys, is connected to a 230VAC, 50Hz supply. D
Leya [2.2K]

Answer:

69.59 ohms

Explanation:

Given that

L=200\ mH

F=50\ hZ

R=30\ ohms

For inductance

X_L=2\times \pi\times f \times LX_L\\=2\times \pi \times 50\times 200\times 10^{-3}\\=62.8\ ohm

R=30\ ohmsImpedance\\Z=\sqrt{R^2+X_L^2}\\Z=\sqrt{30^2+62.8^2}\ ohms\\Z =69.59\ ohms

8 0
2 years ago
Air in tankBis at 200 kPa, 280 K and mass 1 kg. It is connected to an empty piston/cylinder with a float pressure of 400 kPa sim
Romashka [77]

Answer:

Explanation: see attachment

7 0
2 years ago
The small washer is sliding down the cord OA. When it is at the midpoint, its speed is 28 m/s and its acceleration is 7 m/s 2 .
Neporo4naja [7]

Answer:

Velocity components

V_r = -16.28 m/s

V_z = -22.8 m/s

V_q = 0 m/s

For Acceleration components;

a_r = -4.07m/s^2

a_z = -5.70m/s^2

a_q = 0m/s^2

Explanation:

We are given:

Speed v_o = 28 m/s

Acceleration a_o= 7 m/s^2

We first need to find the radial position r of washer in x-y plane.

Therefore

r = \sqrt{300^2 + 400^2}

r = 500 mm

To find length along direction OA we have:

L = \sqrt{500^2 + 700^2}L = 860 mm

Therefore, the radial and vertical components of velocity will be given as:

V_r = V_o*cos(Q)

V_z = V_o*sin(Q)

Where Q is the angle between OA and vector r.

Therefore,

V_r = 28 * \frac{r}{L} = > 28 * \frac{500}{860}

V_r = -16.28 m/s

• V_z = 28 * \frac{700}{860} = -22.8

• V_q = 0 m/s

The radial and vertical components of acceleration will be:

a_r = a_o*cos(Q)

a_z = a_o*sin(Q)

Therefore we have:

• a_r = 7* \frac{500}{860} = -4.07m/s^2

• a_z = 7 * \frac{700}{860} = -5.70 m/s^2

• a_q = 0 m/s^2

Note : image is missing, so I attached it

3 0
2 years ago
Six years ago, an 80-kW diesel electric set cost $160,000. The cost index for this class of equipment six years ago was 187 and
exis [7]

Answer:

new boiler total cost = $229706.825

new boiler total cost = $127512

Explanation:

given data

power p1 = 80 kW

cost C = $160000

cost index CI 1 = 187

cost index CI 2= 194

cost capacity factor f = 0.6

power p2 = 120 kW

current cost = $18000

to find out

total cost and cost of 40 kW

solution

we consider here CN cost for new boiler and CO cost for old boiler

and x is capacity of new boiler

first we find old boiler current cost that is

current cost CO = C × \frac{CI 1 }{CI 2 }   .............1

put here value

current cost = 160000 × \frac{194 }{187 }

new current cost = $165989.304

and

use here power sizing technique for 124 kW

CN/CO = (\frac{p2}{p1} )^{f}    ...............2

put here value and find CN

CN/CO = (\frac{p2}{p1} )^{f}  

CN / 165989.304 = (\frac{120}{80} )^{0.6}  

CN = 211706.825

so new cost = $211706.825

so

total cost for new boiler is

total cost = new cost + current cost

total cost = 211706.825 + 18000

new boiler total cost = $229706.825

and

for 40 kW new cost will be

use equation 2

CN/CO = (\frac{p2}{p1} )^{f}

CN / 165989.304 = (\frac{40}{80} )^{0.6}  

CN = 109512

so new cost is $109512

so

total cost for new boiler is

total cost = new cost + current cost

total cost = 109512 + 18000

new boiler total cost = $127512

7 0
2 years ago
Other questions:
  • PDAs with two stacks are strictly more powerful than PDAs with one stack. Prove that 2-stack PDAs are not a valid model for CFLs
    12·1 answer
  • . Were you able to observe ???? = 0 in the circuit you constructed during lab? Why or why not? Hint: What value of resistance wo
    6·1 answer
  • Add a calculated field named AccountTime that calculates the number of days each client's accounts have been open. Assume today'
    6·1 answer
  • A well-insulated tank in a vapor power plant operates at steady state. Saturated liquid water enters at inlet 1 at a rate of 125
    8·1 answer
  • A 2-m3 rigid tank initially contains air at 100 kPa and 22oC. The tank is connected to a supply line through a valve. Air is flo
    9·1 answer
  • Argon contained in a closed, rigid tank, initially at 33.7°C, 2.1 bar, and a volume of 4.2 m3, is heated to a final pressure of
    12·1 answer
  • The rigid beam is supported by a pin at C and an A992 steel guy wire AB of length 6 ft. If the wire has a diameter of 0.2 in., d
    14·1 answer
  • An ideal Diesel cycle has a compression ratio of 18 and a cutoff ratio of 1.5. Determine the maximum air temperature and the rat
    9·1 answer
  • When comparing solids to fluids, the following is true: for elastic solids, the stress must be normal. For Newtonian fluids, the
    9·1 answer
  • When encountering low visibility from rain or fog, you should use your ____.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!