Kernel's point of view..Theprocess is runningThe Os chooses this process to berunning on the CPU and changesNewTerminatedits state to "Running".ReadyRunningWaitingProcessStates11
Kernel’s point of view. 11 New Waiting Terminated Process States Ready Running Big Picture The process is running. The OS chooses this process to be running on the CPU and changes its state to “Running
Kernel's point of view...TheprocessisblockedWhiletheprocessisrunning,itmaybe waitingfor somethingNewTerminatedandbecomesblockedvoluntarilyReadyRunningWaitingProcessStates12
Kernel’s point of view. 12 New Waiting Terminated Process States Ready Running Big Picture The process is blocked. While the process is running, it may be waiting for something and becomes blocked voluntarily
Kernel'spointof view...Example.ReadingafileSometimes, the process has to wait forthe responsefrom the device andtherefore,itis blockedNevertheless, this blocking state is interruptible. E.g.,"Ctrl + C" can getthe process out of the waiting state (but goes to termination stateinstead).Waiting(interruptible)ProcessStates13
Kernel’s point of view. 13 New Waiting (interruptible) Terminated Process States Ready Running Big Picture Example. Reading a file. Sometimes, the process has to wait for the response from the device and, therefore, it is blocked. Nevertheless, this blocking state is interruptible. E.g., “Ctrl + C” can get the process out of the waiting state (but goes to termination state instead)
Kernel'spointof view...Sometimes, a process needs to wait for a resource but it doesn't want tobe disturbed while it is waiting.In other words, theprocesswantsthatresource very much.Then, the process status is set to the uninterruptiblestatus.ReadyRunningWaiting(uninterruptible)ProcessStates14
Kernel’s point of view. 14 New Waiting (uninterruptible) Terminated Process States Ready Running Big Picture Sometimes, a process needs to wait for a resource but it doesn’t want to be disturbed while it is waiting. In other words, the process wants that resource very much. Then, the process status is set to the uninterruptible status
Kernel'spointof view...ReturnbacktoreadyWhen response arrives, the status of the process changes back to Readyfromanyoneoftheblockedstates.dataProcessReadyRunningWaitingProcessStates15
Kernel’s point of view. 15 New Waiting Terminated Process States Ready Running Big Picture Return back to ready. When response arrives, the status of the process changes back to Ready. from any one of the blocked states. Process data