What are the process states in Windows and Linux?

A process is not only a program under execution but it is the active state of the program when it is executing and it has its own Process Control Block (PCB). A process requires various resources like memory, CPU, hard disk, and Input/Output devices to function properly.

Process States

A process has five fundamental states that define its lifecycle in the operating system −

Process State Diagram New Ready Running Waiting Terminated admitted dispatch exit I/O or event wait I/O complete preempt State Descriptions: ? New: Process created, waiting to be admitted to ready queue ? Ready: Process loaded in memory, waiting for CPU allocation ? Running: Process executing on CPU

  • New − The process is just created and stored on the hard disk. The operating system will pick this process and load it into main memory. This is the initial state of any process.

  • Ready − The process is loaded in main memory and waiting for CPU assignment. The short-term scheduler selects processes from the ready queue for execution.

  • Running (Executing) − The process is currently executing on the CPU and performing its required operations.

  • Waiting (Blocked) − The process is waiting for some event to occur, such as I/O completion or resource availability. Once the event occurs, the process moves back to the ready state.

  • Terminated − The process has finished execution and is being removed from the system. This is the final state in the process lifecycle.

Differences Between Windows and Linux

Aspect Linux Windows
Parent Process Termination All child processes are forced to exit Child processes continue running independently
Process Hierarchy Strong parent-child relationship Weaker parent-child dependency
Zombie Processes Common occurrence, requires parent to read exit status Less common due to different process management

Zombie Processes

A zombie process is a terminated process that still has an entry in the process table because its parent process has not yet read its exit status. This occurs primarily in UNIX and Unix-like systems including Linux.

Zombie processes consume minimal system resources (only the process table entry) but too many zombies can exhaust the process table, preventing new processes from being created.

Conclusion

Process states provide a framework for understanding how operating systems manage program execution. The five-state model (New, Ready, Running, Waiting, Terminated) is fundamental across all operating systems, though implementation details vary between Windows and Linux, particularly in parent-child process relationships and zombie process handling.

Updated on: 2026-03-17T09:01:38+05:30

3K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements