Consider the following statements about process state transitions for a system using preemptive scheduling. I. A running process can move to ready state. II. A ready process can move to running state. III. A blocked process can move to running state. IV. A blocked process can move to ready state. Which of the above statements are TRUE?
Consider the following statements about process state transitions for a system using preemptive scheduling. I. A running process can move to ready state. II. A ready process can move to running state. III. A blocked process can move to running state. IV. A blocked process can move to ready state. Which of the above statements are TRUE? Correct Answer I, II, and IV only
A process state diagram for a pre-emptive scheduling is:
[ alt="F3 Raju.S 3103-2020 Savita D3" src="//storage.googleapis.com/tb-img/production/20/04/F3_Raju.S_3103-2020_Savita_D3.png" style="width: 568px; height: 242px;">
Statement I: TRUE
A process can move from running state to ready state on interrupt or when priority expires, that is, when it is pre-empted.
Statement II: TRUE
A ready process moves to running process when it is dispatched.
Statement III: FALSE
A blocked process that is in waiting state can never move directly to running state. It must go to ready queue first.
Statement IV: TRUE.
A blocked or waiting process can move to ready state.
Important Point:
The transition from running to ready state is possible only in pre-emptive scheduling. It cannot happen in non pre-emptive scheduling.