Draw the state diagram of a process from its creation to termination, briefly elaborate every state and every transition

State diagram of process from creation to termination:

new (2).png

  • new : The process is being created
  • running : Instructions are being executed
  • waiting : The process is waiting for some event to occur (e.g. I/O)
  • ready : The process is waiting to be assigned to a processor (CPU)
  • terminated : The process has finished execution