subject
Engineering, 12.03.2020 22:50 tsmoothb15851

A) What is it doing?b) Identify all the system callsc) Indicate what output it will produce to the consoled) For each system call, say what it does and how it changes the state of the process if at all. void main(){pid_t pid, mypid;pid = fork();if (pid<0) {printf("Error, fork failed\n");exit(0);}else if (pid==0) {mypid = getpid();printf("Child process pid is %d\n",mypid);sleep(10);exit(0);} else {mypid=getpid();wait(NULL);printf(" Parent process pid is %d\n",mypid);}}

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Fluids at rest possess no flow energy. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
The thermal expansion or contraction of a given metal is a function of the f a)-density b)-initial temperature c)- temperature difference d)- linear coefficient of thermal expansion e)- final temperature f)- original length
Answers: 2
question
Engineering, 04.07.2019 18:20
Most leaks in reciprocating air compressors can be detected and minimized by: (clo4) a)-detecting leakage areas using ultrasonic acoustic detector. b)-tightening joints and connections c)-replacing faulty equipment d)-all of the given options
Answers: 2
question
Engineering, 04.07.2019 18:20
Find the kinematic pressure of 160kpa. for air, r-287 j/ kg k. and hair al viscosity of air at a temperature of 50°c and an absolute (10 points) (b) find the dynamic viscosity of air at 110 °c. sutherland constant for air is 111k
Answers: 3
You know the right answer?
A) What is it doing?b) Identify all the system callsc) Indicate what output it will produce to the c...
Questions
question
History, 20.10.2020 07:01
question
Social Studies, 20.10.2020 07:01
Questions on the website: 13722362