<aside> 💡

A process is an instance of a running program

We can add more to a process!

We can add more to a process!

</aside>

Summary

The OS has to:

Process Control Block

PCBs contain all information, this is the task_struct in Linux and contains the following:

Process State Diagram

How a kernel loads a program into memory

image.png

  1. Created: kernel initializes the PCB and loads the program’s code, data, stack, and heap into memory
  2. Waiting: process is ready to run but waiting for the CPU to be available