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
3241004551 [841]
3 years ago
15

Consider the following program:

Engineering
1 answer:
EleoNora [17]3 years ago
5 0

Answer:

The solution of this question is given below in explanation section.

Explanation:

The correct answer to this question is A i.e. 112002 .

the correct code of this question is given below

#include  <stdio.h>

#include  <string.h>

#include  <sys/types.h>

//#include "csapp.h"

void end(void)

{

printf("2");

}

int main()

{

if (fork() == 0)

atexit(end);

if (fork() == 0)

printf("0");

else

printf("1");

exit(0);

}

/* $end forkprob2 */

when you run this program, fork function print different values.

However, it is noted that when you run the program repeatedly, it will show you different values. But the most possible value that this program will show is A.

The picture is attached of the running program to get the idea of code.

You might be interested in
What is over head line
CaHeK987 [17]

Explanation:

An overhead power line is a structure used in electric power transmission and distribution to transmit electrical energy across large distances. It consists of one or more conductors (commonly multiples of three) suspended by towers or poles. Since most of the insulation is provided by air, overhead power lines are generally the lowest-cost method of power transmission for large quantities of electric energy.

<h3><em><u>Constr</u></em><em><u>uction</u></em></h3>

Towers for support of the lines are made of wood (as-grown or laminated), steel or aluminum (either lattice structures or tubular poles), concrete, and occasionally reinforced plastics. The bare wire conductors on the line are generally made of aluminum (either plain or reinforced with steel or composite materials such as carbon and glass fiber), though some copper wires are used in medium-voltage distribution and low-voltage connections to customer premises. A major goal of overhead power line design is to maintain adequate clearance between energized conductors and the ground so as to prevent dangerous contact with the line, and to provide reliable support for the conductors, resilience to storms, ice loads, earthquakes and other potential damage causes. Today overhead lines are routinely operated at voltages exceeding 765,000 volts between conductors.

<em>Please</em><em> </em><em>mark</em><em> </em><em>it</em><em> </em><em>as</em><em> </em><em><u>brainliest</u></em><em>. </em><em>Follow</em><em> </em><em>me</em><em> </em><em>I </em><em>w</em><em>ill</em><em> </em><em>fo</em><em>llow</em><em> you</em><em> back</em><em>. </em>

6 0
4 years ago
Rolling and Shearing are the types of a)-Bulk Deformation Process b)- Sheet Metal Process c)- Machining Process d)- Both a &amp;
Margarita [4]

Answer:

a)Bulk deformation process  

Explanation:

<u>Rolling</u>

Rolling is a metal forming process.In rolling work piece passes through two moving rollers and get compressed.in rolling thickness of work piece will reduces and length of work piece will increase for maintaining the constant area.Due to compression bulk deformation takes place.

<u>Shearing</u>

In shearing one surface slides on another surface and deformation take place.shearing is a machining process.This is also a bilk motion deformation process.

So from above we can say that option a is right.

5 0
3 years ago
A single crystal of a metal that has the BCC crystal structure is oriented such that a tensile stress is applied in the [100] di
VARVARA [1.3K]

Answer:

For [1 1 0] and  [1 0 1] plane, σₓ = 6.05 MPa

For [0 1 1] plane, σ = 0; slip will not occur

Explanation:

compute the resolved shear stress in [111] direction on each of the [110], [011] and on the [101] plane.

Given;

Stress direction: [1 0 0] ⇒ A

Slip direction: [1 1 1]

Normal to slip direction: [1 1 1] ⇒ B

∅ is the angle between A & B

Step 1: cos∅ = A·B/|A| |B| = \frac{[100][111]}{\sqrt{1}.\sqrt{3}  } ⇒ cos∅ = 1/\sqrt{3}

σₓ = τ/cos ∅·cosλ

where τ is the critical resolved shear stress given as 2.47MPa

Step 2: Solve for the slip along each plane

(a) [1 1 0]

cosλ = [1 1 0]·[1 0 0]/(\sqrt{2}·\sqrt{1})        

note: cosλ = slip D·stress D/|slip D||stress D|

cosλ = 1/\sqrt{2}

∵ σₓ = τ/\frac{1}{\sqrt{2} } ·\frac{1}{\sqrt{3} } = \sqrt{6} * 2.47MPa = 6.05MPa

Hence, stress necessary to cause slip on [1 1 0] is 6.05MPa

(b) [0 1 1]

cosλ = [0 1 1]·[1 0 0]/(\sqrt{2}·\sqrt{1}) = 0

∵ σₓ = 2.47MPa/0, which is not defined

Hence, for stress along [1 0 0], slip will not occur along [0 1 1]

(c) [1 0 1]

cosλ = [0 1 1]·[1 0 0]/(\sqrt{2}·\sqrt{1})

cosλ = 1/\sqrt{2}

∵ σₓ = τ/\frac{1}{\sqrt{2} } ·\frac{1}{\sqrt{3} } = \sqrt{6} * 2.47MPa = 6.05MPa

See attachment for the space diagram

3 0
3 years ago
As a human resources professional for a large company, Tommy is involved with the ___________ process. His goal is to find the r
zaharov [31]

Answer:

Recruitment

Explanation:

The process of recruitment involves several activities whose main objective is to get the right people with relevant qualifications at the appropriate time to meet the needs of an organisation whenever there’s need. The process involves screening a pool of candidates through several steps to obtain the best fit for the job.

4 0
3 years ago
Two transmission belts pass over a double-sheaved pulley that is attached to an axle supported by bearings at A and D. The radiu
Fynjy0 [20]

Answer:

Check the explanation

Explanation:

Kindly check the attached image below to see the step by step explanation to the question above.

6 0
4 years ago
Other questions:
  • Two reversible cycles operate between hot and cold reservoirs at temperature TH and TC, respectively. If one is a power cycle an
    8·1 answer
  • Steam enters an insulated turbine at 100 bar, 400oC. At the exit, the pressure and quality are 200 kPa and 0.47, respectively. D
    7·1 answer
  • Name two types of battery chargers that are used in mechanics
    14·1 answer
  • The cables of a power line are copper-coated steel wire. The overall diameter of the wire is 5/8 in. The steel core has a diamet
    8·1 answer
  • The ___________ section of the bid package might include information concerning provisions for water and other utilities, sanita
    14·1 answer
  • Why does an object under forced convection reach a steady-state faster than an object subjected to free-convection?
    5·1 answer
  • A distillation column with a partial reboiler and a total condenser is being used to separate a mixture of benzene, toluene, and
    6·1 answer
  • What is the inverse of this function? f(x)=-1/2(x+3)^1/2, x&gt;= -3
    13·1 answer
  • Please help i really don't understand.
    8·1 answer
  • Internal service quality means that an entire organization,
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!