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
YO CUTIE! HELP MEEEEEE! Hazardous waste is a category that includes all of the following EXCEPT
madam [21]

your answer should be <u>B. Soluble</u>

3 0
3 years ago
Read 2 more answers
This elementary problem begins to explore propagation delayand transmission delay, two central concepts in data networking. Cons
telo118 [61]

Explanation:

(a)

Here, distance between hosts A and B is m meters and, propagation speed along the link is s meter/sec

Hence, propagation delay, d_{prop} = m/sec (s)

(b)

Here, size of the packet is L bits

And the transmission rate of the link is R bps

Hence, the transmission time of the packet,  d_{trans} = L/R

(c)

As we know, end-to-end delay or total no delay,

\mathrm{d}_{\text {nodal }}=\mathrm{d}_{\text {proc }}+\mathrm{d}_{\text {quar }}+d_{\max }+d_{\text {prop }}

Here,  $\mathrm{d}_{\text {rroc }}$ and $\mathrm{d}_{\text {quat }}$ \\Hence, $\mathrm{d}_{\text {rodal }}=\mathrm{d}_{\text {trass }}+\mathrm{d}_{\text {prop }}$ \\We know, $\mathrm{d}_{\text {trax }}=\mathrm{L} / \mathrm{R}$ sec and $\mathrm{d}_{\text {vapp }}=\mathrm{m} / \mathrm{s}$ sec\text { Hence, } {d_{\text {nodal }}}=\mathrm{L} / \mathrm{R}+\mathrm{m} / \mathrm{s} \text { seconds }

(d)

The expression, time time $t=d_{\text {trans }}$ means the\at time since transmission started is equal to transmission delay.

As we know, transmission delay is the time taken by host to push out the packet.

Hence, at time $t=d_{\text {trans }}$ the last bit of the packet has been pushed out or transmitted.

(e)

If \ d_{prop} >d_{trans}

Then, at time $t=d_{\text {trans }}$ the bit has been transmitted from host A, but to condition (1),  the first bit has not reached B.

(f)

If \ d_{prop}

Then, at time $t=d_{\text {trans }}$, the first bit has reached destination on B

Here,s=2.5 \times 10^{8} \mathrm{sec}

\begin{aligned}&\mathrm{L}=100 \mathrm{Bits} \text { and }\\&\mathrm{R}=28 \mathrm{kbps} \text { or } 28 \times 1000 \mathrm{bps}\end{aligned}

It's given that \ d_{prop} =d_{trans}

Hence,

        \begin{aligned}\ & \frac{L}{R}=\frac{m}{s} \\m &=s \frac{L}{R} \\&=\frac{2.5 \times 10^{8} \times 100}{28 \times 1000} \\&=892.9 \mathrm{km}\end{aligned}

5 0
3 years ago
PLEASE HELP, THANK YOU
Elena L [17]

Answer:

6,3,2,5,1,4 because they jst are

Explanation:

3 0
3 years ago
How are the particles moving and and arranged in a gas?
alexandr402 [8]

Answer:

The particles in gas do not have any particular arrangement and there are very, very weak forces between them. So, the particles in a gas can easily move around and fill the shape of the container they are in, meaning they have no fixed shape.

7 0
3 years ago
Why does voltage have so many names
BARSIC [14]

Answer:

Europe and most other countries in the world use a voltage which is twice that of the US. ... Originally Europe was 120 V too, just like Japan and the US today, but it was deemed necessary to increase voltage to get more power with fewer losses and less voltage drop from the same copper wire diameter

www.worldstandards.eu › electricity › why-no-standard-voltage

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • Air at 35 C, 1 atm, and 50% relative humidity enters a dehumidifier operating at steady state. Saturated moist air and condensat
    13·1 answer
  • A multistage pump is required to deliver water to a head of 50 m at flow rate of 0.1 m^3/s. A motor rotating at 1800 rpm is avai
    8·1 answer
  • Implement Heap (constructors, trickleUp and trickleDown), MyPriorityQueue (constructor, offer, poll, peek and isEmpty) and HeapS
    12·1 answer
  • The fins attached to a surface are determined to have an effectiveness of 0.9. Do the rate of heat transfer from the surface dec
    11·1 answer
  • A full-scale working model used to test a design solution by making actual observations and necessary adjustments.
    8·1 answer
  • A slug travels 3 centimeters in 3 seconds. A snail travels 6 centimeters in 6 seconds. Both travel at constant speeds. Mai says,
    6·1 answer
  • Develop an E-R model (E-R Diagram) for the application belowDatabase RequirementsLogin
    12·1 answer
  • LET'S DO THIS! Here are the directions whoever answers first will get the brainliest! I Promise!
    12·1 answer
  • Plateau Creek carries 5.0 m^3 /s of water with a selenium (Se) concentration of 0.0015 mg/L. A farmer withdraws water at a certa
    12·1 answer
  • How do statics, Dynamics and Mechanics of materials differ from each other? *
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!