Process Life Cycle in OS/RTOS
Detailed Explanation with Diagram
Overview of Process Life Cycle
• The process life cycle defines the various stages a
process goes through from creation to
termination.
• States include:
• 1. New
• 2. Ready
• 3. Running
• 4. Waiting
• 5. Terminated
New State
• • The process is being created.
• • Operating system initializes PCB (Process
Control Block).
• • Allocates necessary resources like memory
and IDs.
Ready State
• • Process is loaded into main memory and is
waiting to be assigned to the CPU.
• • The scheduler determines which process
from the ready queue will execute next.
Running State
• • Process is currently being executed by the
CPU.
• • The instructions in the process are actively
running.
• • Only one process per core can be in this
state at a time.
Waiting State
• • Process cannot proceed until some event
occurs (e.g., I/O completion).
• • It voluntarily releases the CPU and enters a
wait queue.
Terminated State
• • Process has finished execution.
• • All resources are released and PCB is
deleted.
• • The process is removed from all queues.