Process in OS: Definition, Program vs Process & Structure

Added:

Process Definition
Process Structure
Heap And Stack
Concept Summary

Process Definition

0:00
Playing Section
  • 1

    Process is a program in execution, distinct from a stored program file.

  • 2

    OS loads executable into memory, CPU execution turns it into a process.

Basic understanding of what an Operating System (OS) is and its primary role as a resource manager.
Fundamental knowledge of computer hardware components, specifically the CPU, Random Access Memory (RAM), and storage devices.
Familiarity with basic programming concepts, such as variables, functions, and compilation (how source code becomes an executable file).
Conceptual understanding of memory addresses and how a computer CPU executes instructions sequentially.
Process States and Lifecycle: Understanding the different states a process undergoes (Ready, Running, Blocked) and how the OS manages transitions.
Process Control Block (PCB) and Context Switching: Learning how the OS stores process metadata and switches execution between different processes.
CPU Scheduling Algorithms: Exploring how the operating system decides which process gets CPU time (e.g., First-Come-First-Served, Round Robin, Shortest Job First).
Threads and Multithreading: Distinguishing between a process and a thread, and understanding how multiple threads can share a process's memory space.
Inter-Process Communication (IPC): Studying how independent processes communicate and synchronize with each other using shared memory or message passing.
30.6K views751likes6:34@makingITsimple1Original Release: 2020-07-28

A process is an instance of a program in execution, consisting of four key components: code (executable instructions), data (static and global variables), heap (dynamic memory allocation at runtime), and stack (local variables, function parameters, and recursion handling). Unlike a program which is stored on secondary memory, a process exists in main memory during execution and has no fixed boundary between stack and heap since their sizes depend on runtime requirements.