What are the different states of a process?

Asked 02-Apr-2022
Viewed 314 times

1 Answer


0

The different states of a process:

  • As it runs, a process goes through various phases. Distinct operating systems may have different states. The most typical process states, however, are described here.
  • When the process is first created, it is in this state. In the process life cycle, it is the first state.
  • Ready-The process is in the ready state and is waiting for the short term scheduler to assign it a processor so it may run. This stage occurs shortly following the process's new state.
  • Suspended Ready-The processes that are ready to be resumed are stored in secondary memory. They were initially ready in main memory, but due to a lack of memory, they were forced to be postponed and stored in secondary memory.
  • Running-When the processor executes the process instructions, the process is said to be in a running state. This is done after the short-term scheduler assigns the process to the processor.
  • Blocked-If a process is waiting for anything to happen, it is in a blocked state. This event could be I/O because I/O events run in main memory and do not require the processor. When the event is finished, the process returns to the ready state.
  • Suspended Blocked-This is comparable to ready-to-hang. Processes that are blocked and suspended are stored in secondary memory.
  • Terminated-Once the process has completed its execution, it is terminated. The process is removed from main memory and its process control block is also erased when it is terminated.


Read More:What do you mean by a process?