Processes States
In this lesson, you will learn about different states of a process and how a process changes from one state to another.
We'll cover the following
The three states of a process
Now that we have some idea of what a process is (though we will continue to refine this notion), and (roughly) how it is created, let us talk about the different states a process can be in at a given time. The notion that a process can be in one of these states arose in
• Running: In the running state, a process is running on a processor. This means it is executing instructions.
• Ready: In the ready state, a process is ready to run but for some reason, the OS has chosen not to run it at this given moment.
• Blocked: In the blocked state, a process has performed some kind of operation that makes it not ready to run until some other event takes place. A common example: when a process initiates an I/O request to a disk, it becomes blocked and thus some other process can use the processor.
Transitioning from one state to another
If we were to map these states to a graph, we would arrive at the diagram as shown below.
Get hands-on with 1400+ tech skills courses.