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
Fantom [35]
2 years ago
9

When nondeterminism results from multiple threads attempting to access a shared resource such as a shared variable or a shared f

ile, at least one of the accesses is an update, and the accesses can result in an error, we have a race condition.
a) True
b) False
Engineering
1 answer:
Sindrei [870]2 years ago
6 0

Answer:

a) True

Explanation:

In Computer programming, when a multiple thread is executing, the sequence in which the statements (codes) contained therein are executed by these multiple thread is mainly nondeterministic in nature.

When nondeterminism results from multiple threads attempting to access a shared resource such as a shared variable or a shared file, at least one of the accesses is an update, and the accesses can result in an error, we have a race condition.

A race condition can be defined as a condition in which multiple threads have the ability to access shared data at the same time and as such they both try to change (modify) the data. Thus, in a race condition occurs in computer (software) programming when a software application's behavior is solely dependent on the timing of multiple threads (processes) in order to function properly.

You might be interested in
Damage reports should contain the information needed for what?
SIZIF [17.4K]

Answer:

<h2>it's damage kindly be careful</h2>
3 0
2 years ago
Each cout statement has a syntax error. Type the first cout statement, and press Run to observe the error message. Fix the error
saul85 [17]

Answer:

1. cout << "Num: " << songNum << endl;

2. cout << songNum << endl;

3. cout << songNum <<" songs" << endl;

Explanation:

//Full Code

#include <iostream>

using namespace std;

int main ()

{

int songNum;

songNum = 5;

cout << "Num: " << songNum << endl;

cout << songNum << endl;

cout << songNum <<" songs" << endl;

return 0;

}

1. The error in the first cout statement is that variable songnum is not declared.

C++ is a case sensitive programme language; it treats upper case and lower case characters differently.

Variable songNum was declared; not songnum.

2. Cout us used to print a Variable that has already been declared.

The error arises in int songNum in the second cout statement.

3. When printing more than one variables or values, they must be separated with <<

4 0
3 years ago
(a) The lower yield point for an iron that has an average grain diameter of 1 x 10-2 mm is 230 MPa. At a grain diameter of 6 x 1
olya-2409 [2.1K]

Answer:

The answer is "4.35 \times 10^{-3}\  mm and 157.5 MPa".

Explanation:

In point A:

The strength of its products with both the grain dimension is linked to this problem. This formula also for grain diameter of 310 MPA is represented as its low yield point  

y =  yo + \frac{k}{\sqrt{x}}

Here y is MPa is low yield point, x is mm grain size, and k becomes proportionality constant.  

Replacing the equation for each condition:  

y = y_o + \frac{k}{\sqrt{(1 \times 10^{-2})}}\\\\\ \ \ \ \ \ \ 230 = yo + 10k\\\\ y = yo + \frac{k}{\sqrt{(6\times 10^{-3})}}\\\\275 = yo + 12.90k

People can get yo = 275 MPa with both equations and k= 15.5 Mpa mm^{\frac{1}{2}}.

To substitute the answer,  

310 = 275 + \frac{(15.5)}{\sqrt{x}}\\\\x = 0.00435 \ mm = 4.35 \times 10^{-3}\  mm

In point b:

The equation is \sigma y = \sigma 0 + k y d^{\frac{1}{2}}

equation is:

75 = \sigma o+4 ky \\\\175 = \sigma o+12 ky\\\\ky = 12.5 MPa (mm)^{\frac{1}{2}} \\\\ \sigma 0 = 25 MPa\\\\d= 8.9 \times 10^{-3}\\\\d^{- \frac{1}{2}} =10.6 mm^{-\frac{1}{2}}\\

by putting the above value in the formula we get the \sigma y value that is= 157.5 MPa

5 0
2 years ago
The cubic capacity of a four-stroke over-square spark-ignition engine is 245cc. The over-square ratio is (1.1) The clearance vol
pashok25 [27]

Answer:

Bore = 7 cm

stroke = 6.36 cm

compression ratio = 10.007

Explanation:

Given data:

Cubic capacity of the engine, V = 245 cc

Clearance volume, v = 27.2 cc

over square-ratio = 1.1

thus,

D/L = 1.1

where,

D is the bore

L is the stroke

Now,

V = \frac{\pi}{4}D^2L

or

V = \frac{\pi}{4}\frac{D^3}{1.1}

on substituting the values, we have

245 =  \frac{\pi}{4}\frac{D^3}{1.1}

or

D = 7.00 cm

Now,

we have

D/L = 1.1

thus,

L = D/1.1

L = 7/1.1

or

L= 6.36 cm

Now,

the compression ratio is given as:

\textup{compression ratio}=\frac{V+v}{v}

on substituting the values, we get

\textup{compression ratio}=\frac{245+27.2}{27.2}

or

Compression ratio = 10.007

4 0
3 years ago
Foundation dampproofing is most commonly installed: Select one: a. on both the inside and outside of the basement wall b. Baseme
puteri [66]

Answer:A

Explanation:

Damp roof is generally applied at basement level which restrict the movement of moisture through walls and floors. Therefore it could be inside or the outside basement walls.

4 0
3 years ago
Other questions:
  • Write a grammar for a language whose sentences start with an even and non-zero number of x’s, end with an odd number of z’s, and
    11·1 answer
  • A structural component in the shape of a flat plate 25.0 mm thick is to be fabricated from a metal alloy for which the yield str
    7·2 answers
  • The steel water pipe has an inner diameter of 12 in. and a wall thickness of 0.25 in. If the valve A is closed and the water pre
    10·1 answer
  • 4. Three routes connect an origin and a destination with performance functions tl = 8 + 0.5x1, t2 = 1 + 2x2, and t3 = 3 + 0.75x3
    9·1 answer
  • What is kirchoff's current law?​
    10·2 answers
  • Which of the following is an example of a reliable source?
    10·1 answer
  • Water at 310 K and a flow rate of 4 kg/s enters an alumina tube (k=177Wm K1) with an inner diameter of 0.20 m and a wall thickne
    13·1 answer
  • Select the correct answer. Which statement best describes a hydrogen fuel cell? A This device uses bioethanol as an additive to
    9·2 answers
  • Select a research proposal topic that relates to electrical and electronics engineering and write a proposal report taking into
    12·1 answer
  • At time t the resultant force on a particle, of mass 250kg is (300ti-400tj)N. Initially, the particle is at the origin and is mo
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!