OS Foundations Checkpoint

Processes, privilege, and lifecycle invariants.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. In the process-table simulator, PID 2 has a living child PID 3. Exit(2) runs before Wait(1). Which state exists immediately after Exit?

Select one answer.

2. Zombie children of PID 1 are PIDs 7 and 4. Wait(1) is called once. What does the simulator remove?

Select one answer.

3. A user process asks the kernel to read a file, then resumes in the same process. Which conclusion follows?

Select one answer.

4. The simulator creates PID 2, exits it, then calls Fork(2) before it is reaped. What integer is returned?
5. PID3 is already a zombie child of PID2. Exit(2) runs. Which state must PID3 have? Select one answer.

Select one answer.

6. Fork(1) creates2; Exit(2); Wait(1); Fork(2) fails. What does the next Fork(1) return? Enter one integer.
Join Discord