Question: one question multiple parts Q4.1 Process states 6 Points A process can be in any of the five states shown below (marked as A, B,

Q4.1 Process states 6 Points A process can be in any of the five states shown below (marked as A, B, ... and E). admitted A exit E B I/O or event completion scheduler dispatch 1/0 or event wait D Name these states. Enter your answer here What makes a process in state C to move to state B? Enter your answer here Q4.2 fork() call 4 Points What is the problem (if any) in the following code snippet? int pid = fork(); if (pid 0) { printf("I am the parent process "); ) else if (pid == 0) { printf("I am the child process "); exit(0); ]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
