Process Scheduling

Process Schedular - selects from the available processes which is to be executed next on a Core, and also maintains Scheduling Queues

Ready Queue - all processes that in memory ready to be executed

Wait Queue - all processes waiting for an event

REMEMBER PCB is the list of attributes associated with each process
Illustration of process scheduling

Context Switch

A context switch occurs when the CPU, switches from one process to another.

Context - a process represented in the PCB

Context Switch Time - time it takes to switch context, more complex OS and PCB longer it takes also depends on hardware

Some machines have multiple registers per Core thus multiple context loaded at the same time

HOW TO DO:

  1. Save state of old process
  1. Load state of new process