Dispatcher (OS)
The dispatcher is a component of the OS switches the processor from one process to another (selected by the scheduler).
- It involves Context Switching, switching to user mode, and jumping to the correct location in the user program to resume execution.
Thereās a small dispatcher program that does this.
Dispatcher vs. Scheduler? What is the connection?
The Short-Term Scheduler selects the process, while the dispatcher loads the process onto the CPU. In essence, the scheduler controls which process the dispatcher activates.
So when we talk about dispatching, we talk more about how the Context Switch between processes actually happens, as opposed to deciding which process to switch to.
What is the connection between this and Static Dispatch?
Static dispatch is a programming concept, this is an OS concept.