Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
0 votes
Is context switching time and dispatch latency same?
in Operating System 5 points 29 views

1 Answer

0 votes

Dispatcher is used for changing state of process from ready to running. So I would guess dispatch latency is the amount of time required to change state from ready to running, for a particular process. In context switch on the other hand, kernel running in context on a process stops and starts running in context of another process.

I might be wrong.

73 points
Context switch is the process of storing the state of a process or thread, so that it can be restored and resume execution at a later point.

Dispatch Latency includes context switch time but also the time for the dispatcher to chose a process.
Storing state of a process $\subseteq$ kernel stops running in context of one process and starts running in context of another. Correct me if I’m wrong.