Operating System - Process State
When the process executes, it may change its state. Therefore, the process may be in one of the following state:
- New State: When the new process is created, it is being in the initial state.
- Ready State: The process is waiting to be assigned processor time. Operating system allocates the processor time to the ready process. The process has come into this state either after the new state or when interruption occured during the running state of the process.
- Running State: Once the process gets the CPU time, its instructions are being executed. Just note that only one process is running on any processor at any instant.
- Waiting State: The running process needs some resources or some events to occur (such as I/O complete, waiting for user input and waiting for input file). The process waiting for user input, input file or another event is said to be in waiting state.
- Terminate State: the process has finished execution