How and when a process is swapped in and out of the CPU, thus enabling multi-tasking

Three states

  1. Running
  2. Ready to run
  3. Blocked

Process

Polling

Within the processor queue, you have a main and fast queue for larger and smaller amount of tasks (think of the quick checkouts for people with few items at supermarkets).

Threading

<aside> 👉 When a process is split up into smaller processes known as threads which can be executed separately across multiple cores in the CPU

</aside>