Context Switching in Operating System

Posted by:shreyak
Date:2018-03-28 07:18:54

Context Switch

A context switch is the mechanism to store and restore the state or context of a CPU in Process Control block so that a process execution can be resumed from the same point at a later time. Using this technique, a context switcher enables multiple processes to share a single CPU. Context switching is an essential part of a multitasking operating system features.

When the scheduler switches the CPU from executing one process to execute another, the state from the current running process is stored into the process control block. After this, the state for the process to run next is loaded from its own PCB and used to set the PC, registers, etc. At that point, the second process can start executing.


Posted by:ola46
Date:2018-04-18 19:41:14

It really good to be on coolNaira app I wish myself luck and every other people too

Posted by:alobam
Date:2018-04-18 14:06:19

Are you still wasting your data on facebook? Do you know you can make a lot of money in internet everday, ask me how or chat me on with this number 09030772176

Posted by:inegbedion
Date:2018-04-04 14:56:22

My brother and sister try to register in coolnaira is One of the Best