operating-systems

Definition

Process

A process is an abstraction of a running program. It represents a program in execution, including its current values and state.

Components

A process consists of:

  • Text: The machine code instructions.
  • Program Counter: The address of the next instruction to be executed.
  • Stack: A LIFO structure for function calls and local variables.
  • Data: Global variables and dynamic memory (heap).
  • Resources: Handles to open files, network connections, and other system resources.

States

with suspend: