Question 5
Consider the following processes in an xv6-like operating system.
• Process P1 is waiting in the ready queue. • Process P2 is currently executing on the CPU. • Process P3 is blocked waiting for keyboard I/O. • Process P4 has terminated, but its parent has not yet called wait().
Select all correct statements.
P1 is in the RUNNABLE state.
P2 is in the RUNNING state.
P3 is in the SLEEPING state.
P4 is in the ZOMBIE state.
P3 is in the RUNNABLE state.
P4 is in the RUNNING state.