Identify the different states a live process may occupy and show how a process moves between these states.

 


Identify the different states a live process may occupy and show how a process moves between these states. 

2) A process can be in one of the following states:
Ready i.e., in the scheduling queue waiting it's turn for the CPU
Running i.e., currently occupying the CPU
Blocked i.e., sleeping waiting for a resource request to be satisfied.
Halted i.e., process execution is over. 
  

• A process moves from ready to running, when it is dispatched by the scheduler. 
• A process moves from running to ready, when it is pre-empted by the scheduler. 
• A process moves from running to blocked when it issues a request for a resource. 
• A process moves from blocked to ready when completion of the request is signaled. 


No comments:

Post a Comment