Skip to content
The Computer Science
TheCScience
  • Engineering Subjects
    • Human Values
    • Computer System Architecture
    • Microprocessor
    • Digital Communication
    • Internet of Things
  • NCERT Solutions
    • Class 12
    • Class 11
  • Solutions
    • HackerRank
      • C Solutions
      • C++ Solutions
      • Java Solutions
      • Python Solutions
      • Algorithms Solutions
      • Data Structures Solutions
    • HackerEarth Solutions
    • Leetcode Solutions
  • JEE 2027
The Computer Science
TheCScience

DISPATCHER in Operating Systems | OS Tutorials

YASH PAL, June 6, 2026June 6, 2026

In an operating system, the dispatcher is an important component involved in CPU Scheduling. Basically, the dispatcher is the module that gives control of the CPU to the process selected by the short-term scheduler.

Table of Contents

  • Dispatcher
    • Dispatch Latency

Dispatcher

The functioning of the dispatcher involves the following things –

  1. Switching Context
  2. Switching to User mode
  3. Jumping to the proper location in the user program to restart that program.

The dispatcher should be as fast as possible, since it is invoked during every process switch.

Dispatch Latency

Time taken by the dispatcher to stop one process and start another running is known as the dispatch latency. Figure 1 shows the dispatch latency.

Dispatch latency using dispatcher in operating system
Figure 1: Dispatch Latency
  • To keep dispatch latency low, we need to allow system calls to be preemptible. There are several ways to achieve this goal.
  • One is to insert preemption points in long-duration system calls, which checks to see whether a high-priority process needs to be turned.
  • If so, a context switch takes place, and when the high-priority process terminates, the interrupted process continues with the system call.
  • Preemption points can be placed at only “safe” locations in the kernel, where kernel data structures are not being modified.
  • Even with preemption points, dispatch latency can be charged because only a few preemption points can be practically added to a kernel.
  • Another method for dealing with preemption is to make the entire kernel preemptible.
  • Priority Inversion: If the higher-priority process needs to read or modify kernel data that is currently being accessed by another, lower-priority process, then the high-priority process would be waiting for a lower-priority one to finish. This situation is known as priority inversion.
  • The conflict phase of dispatch latency has three components:
    1. Preemption of any process running in the kernel.
    2. Low-priority processes releasing resources needed by the high-priority process.
    3. Context switching from the current process to the high-priority process.
engineering subjects Operating System Operating System

Post navigation

Previous post

Leave a Reply

Your email address will not be published. Required fields are marked *

Engineering Core Subjects

Digital Communication Subject
Internet of Things Subject
Computer Architecture subject
Human Value Subject

JEE Study Materials

JEE Physics Notes
JEE Chemistry Notes

TheCScience

At TheCScience.com, our mission is to make quality education accessible to everyone. We provide in-depth, easy-to-understand articles covering Secondary, Senior Secondary, and Graduation-level subjects.

Pages

About US

Contact US

Privacy Policy

DMCA

Our Tools

Hosting - get 20% off

Engineering Subjects

Internet of Things

Human Values

Digital Communication

Computer System Architecture

Microprocessor

Programming Tutorials

Data Structure and Algorithm

C

Java

NCERT

Class 12th

©2026 TheCScience | WordPress Theme by SuperbThemes