What is context switch? - Definition from WhatIs.com
Part of the Microprocessors glossary:

A context switch is a procedure that a computer's CPU (central processing unit) follows to change from one task (or process) to another while ensuring that the tasks do not conflict. Effective context switching is critical if a computer is to provide user-friendly multitasking.

In a CPU, the term "context" refers to the data in the registers and program counter at a specific moment in time. A register holds the current CPU instruction. A program counter, also known as an instruction address register, is a small amount of fast memory that holds the address of the instruction to be executed immediately after the current one.

A context switch can be performed entirely in hardware (physical media). Older CPUs, such as those in the x86 series, do it that way. However, most modern CPUs perform context switches by means of software (programming). A modern CPU can perform hundreds of context switches per second. Therefore, the user gets the impression that the computer is performing multiple tasks in a parallel fashion, when the CPU actually alternates or rotates between or among the tasks at a high rate of speed.


Continue reading about context switching:

OSDev.org offers a concise explanation of how context switching works.

This was last updated in April 2012
Contributor(s): Stan Gibilisco
Posted by: Margaret Rouse

Related Terms


  • system-on-a-chip (SoC)

    - System-on-a-chip (SoC) technology is the packaging of all the necessary electronic circuits and parts for a "system" (such as a cell phone or digital camera) on a single integrated circuit (IC), ge... (WhatIs.com)

  • holographic processing unit (HPU)

    - Holographic processing unit (HPU) is what Microsoft has named the coprocessor in its HoloLens virtual reality (VR) headset. The HPU conducts the processing that integrates real world and data for a... (WhatIs.com)

  • quad-core processor

    - A quad-core processor is a chip with four independent units called cores that read and execute central processing unit (CPU) instructions such as add, move data, and branch. (WhatIs.com)


  • Microprocessors

    - Terms related to microprocessors, including definitions about silicon chips and words and phrases about computer processors.

  • Internet applications

    - This WhatIs.com glossary contains terms related to Internet applications, including definitions about Software as a Service (SaaS) delivery models and words and phrases about web sites, e-commerce ...

Ask a Question. Find an Answer.Powered by ITKnowledgeExchange.com

Ask An IT Question

Get answers from your peers on your most technical challenges

Ask Question

Tech TalkComment



    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.