subject
Engineering, 21.02.2020 22:06 jessicamcgoldri5625

Using the program below, identify the values of pid at lines A and C, and the values of pid1 at lines B and D. (Assume that the actual pids of the parent and child are 2600 and 2603, respectively.)

int main() ( pid t pid, pid1; /* fork a child process */ pid = fork(); if (pid〈 0) { /* error occurred */ terinttstdec, "Fork Failed"); return 1; else if (pid == 0) { /* child process printf('' child: Rad = %d", Rid); printf( "child: pidl %d", = pid1); /* B*/ else /*parent process/ pid! = geteid(); printf("parent : Rid-%d", pid); printf("parent : pid! =%d", wait(NULL); pid1); /* D*/

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Ahouse has the following electrical appliance usage (1) single 40w lamp used for 4 hours per day (2) single 60w fan used for 12 hours per day (3) single 200w refrigerator that runs 24 hours per day with compressor run 12 hours and off 12 hours find the solar power inverter size in watt with correction factor of 1.25.
Answers: 1
question
Engineering, 04.07.2019 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:10
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
question
Engineering, 04.07.2019 18:10
Apipe with an outside diameter of 15 cm is exposed to an ambient air and surrounding temperature of -20°c. the pipe has an outer surface temperature of 65°c and an emissivity of 0.85. if the rate of heat loss from the pipe surface is 0.95 kw per meter of length, the external convective heat transfer coefficient (h) is: (a) 12.5 w/m"k (b) 18.6 w/mk (c) 23.7 w/mk (d) 27.9 w/mk (e) 33.5 w/mk
Answers: 1
You know the right answer?
Using the program below, identify the values of pid at lines A and C, and the values of pid1 at line...
Questions