Process State

  • As a process executes, it changes state
    • new: The process is being created
    • running: Instructions are being executed
    • waiting:The process is waiting for some event to occur
    • ready: The process is waiting to be assigned to a processor
    • terminated: The process has finished execution

  • Diagram of Process State

    Process Control Block (PCB)

  • Information associated with each process
    • Process state
    • Program counter
    • CPU registers
    • CPU scheduling information
    • Memory-management information
    • Accounting information
    • I/O status information

  • Process Control Block (PCB)

    CPU Switch From Process to Process