An operating system uses swapping. A running process encounters the need to wait for an event. The correct sequence of states for the process to re-enter its running stage is:
A. Blocked → Blocked - Ready → Blocked - suspended → Ready → Running
B. Blocked - suspended → Blocked - Ready → Blocked → Ready → Running
C. Ready → Running → Blocked → Ready→ Running
D. Blocked→ Blocked-suspended → Blocked-Ready → Ready → Running
Answer:D
An operating system uses swapping. A running process encounters the need to wait for an event. The correct sequence of states for the process to re-enter its running stage is:
A. Blocked → Blocked - Ready → Blocked - suspended → Ready → Running B. Blocked - suspended → Blocked - Ready → Blocked → Ready → Running C. Ready → Running → Blocked → Ready→ Running D. Blocked→ Blocked-suspended → Blocked-Ready → Ready → Running