Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

D Question 10 4.2 pts for how many processes (among parent and all descendants c

ID: 3903867 • Letter: D

Question

D Question 10 4.2 pts for how many processes (among parent and all descendants created) is the following C expression NOT O? forlk) fork) fork) fork D Question 11 4.2 pts How many NEW processes are created by executing the following code on a Unix computer? (assume all fork) calls succeed) fork; D Question 12 4.2 pts When the CPU gets an interrupt while running process A and the CPU scheduler decides to schedule process B instead while handling the interrupt, the PCB of process A is. moved to the ready queue is placrd into the waiting queue of the device controller generating the interrupt O is stored in a temporary variable as long as process A can't go back on the CPU

Explanation / Answer

Q11) Answer)
for(i=1;i<=3;i++){
fork();
}

Since the loop executes for 3 times. Thus 3 processes will be created.

3 new processes will be created.

Q12) Answer)

When CPU gets an interrupt while running process A and the CPU scheduler decides to schedule process B instead while handling the interrupt, the PCB of the process is -

moved to ready queue.

The process being interrupted is moved to the ready queue.