Process State in Operating System

Process executes it changes its state and the state of a process is defined in part by the current activity of that process so when a process is executing it can change from one state to another and the state of a process is defined by the current activity of that process which means that what is the process currently doing what is the current activity of that process.
State of that process now let us see what are the states that a process can be in so each process may be in one of the following states so we will be seeing what are the states in which a process can be in so first of all we have mu so if a process is in the new state it means the process is being created so when the process is being created when the program is going to be in execution and the process is being created for performing a particular task at that state or at that moment we say that the process is in a new state now the second state is a running state so when instructions are being executed at that moment we say that the process is in the running state so when the process is being created it is known as the new state and then when the process begins this execution that means when the instructions within the process are being executed at that moment.
Process is in the running state now there is another state known as the waiting State so the process is waiting for some even to occur such as an input-output completion or reception of a signal so we say that a process is in the waiting State when it is waiting for some event to occur so what can be the events some examples are IO completion input-output some IO operation needs to be completed which are in high priority so we need to wait for the i/o operation to be completed we means the process has to wait for the input/output operation to complete or reception of a signal so if the process is waiting for a signal to be received and it is waiting for that signal so such are the cases that we can have so in such cases when the process is waiting for some event to occur at that time we said that the processes in the waiting state then we have the ready state now let’s see what is this the process.
is waiting to be assigned to a processor so when the process has been created that means the process has already been created the new state is already over and it is not yet running alright so after the process is created and before it starts running the process has to be assigned to a processor so that it can start running or it can start its execution so at that moment we say that the process is in a ready state so the process is created and it is not yet running but it is ready so at that moment we said that the process is in the ready state when it is waiting to be assigned to a processor so that it can begin or resume its execution and then the last one is called the terminated State so from the name itself you must have understood the process has finished execution so when the process finishes execution then we say that it is in the terminated State or the process has been terminated so these are the states in which a process.
Process States and see how a process begins from the new States and reaches the terminated state so here we have a diagram which shows the process States and here we have all the states that we have just studied before and let us see how does a process change from one state to another using this diagram so first of all we have the new state so here the process is being created so when the process is being created it is there in this new state so after the process is created it is admitted and it comes to the ready state so what is a ready state in the ready state the processes are ready to begin execution and it is waiting to be assigned a processor so that it can begin its execution so the process is created and it is admitted and it is ready over here so in the ready State what can happen the scheduler dispatches it to the processor and then when it begins his execution it is in the running state so when it is dispatched and when it receives a processor.

Leave a Comment