What is context switching?

Context switching is moving your attention from one task to another. Why each switch has a cost, and simple ways to cut the ones you didn't choose.

On this page
  1. Where the term comes from
  2. Why switching costs more than it looks
  3. Common kinds of context switching at work
  4. Reducing unwanted switches
  5. An example day
  6. Is all context switching bad?
  7. FAQs

Context switching is moving your attention from one task, app or topic to another. At work it happens constantly: from writing code to answering a message, from a document to a meeting, from one project to another. Each switch has a cost, because your mind needs time to let go of the previous task and load the next one. Reducing the switches you didn't choose is one of the most practical ways to get more done.

Where the term comes from

The phrase comes from computing, where a processor "switches context" by saving the state of one task and loading another. The analogy fits people well: switching tasks means putting one set of details aside and bringing another back, and that takes time and effort.

Why switching costs more than it looks

A switch isn't just the seconds it takes to open another app. It includes:

  • Reorienting: remembering where you were and what you were doing.
  • Reloading details: the variable names, the argument in the document, the decision you were about to make.
  • Lingering attention: part of your mind stays on the previous task for a while. This is often called attention residue; see what is attention residue?

Small switches add up across a day, which is why a day full of interruptions can feel busy but unproductive.

Common kinds of context switching at work

KindExample
InterruptionsA notification, a colleague's question, a meeting starting
Self-interruptionsChecking chat, email or a dashboard out of habit
Task jugglingWorking on several projects in the same morning
Tool hoppingMoving between apps to find information for one task

Interruptions are often unavoidable. Self-interruptions and tool hopping are usually the easiest to reduce.

Reducing unwanted switches

  • Batch similar work: messages at set times, reviews in review windows, meetings clustered.
  • Silence non-urgent notifications while focusing.
  • Keep only the current task on screen. See single-tasking on a Mac.
  • Make quick answers glanceable, so checking doesn't mean opening another app. See what is a glanceable interface?
  • Write down where you stopped before an unavoidable switch, so coming back is quick.

OneNotch is designed around the last two: it shows things you'd otherwise check in other apps (your next meeting, unread Slack messages, open Linear issues, time left in a focus session) beside the MacBook notch, and lets you act on them in a small panel without leaving the app you're in. See how to cut context switching on a Mac.

An example day

Picture a morning with a document to write, a few chat messages, two meetings and a code review. Done as it comes, the morning might look like: write for ten minutes, answer a message, write, check the calendar, join a meeting, review half a pull request, answer another message, back to the document. Every arrow is a switch, and the document barely moves.

Rearranged, the same morning becomes: messages first, a protected hour of writing, the two meetings back to back, then the review and the remaining messages together. Same work, far fewer switches, and the document gets finished. That's what batching and protected time look like in practice; see protecting focus time around meetings.

Is all context switching bad?

No. Some roles require frequent switching, and breaks are a healthy kind of switch. The goal isn't zero switches; it's choosing them, rather than being pulled by every ping.

FAQs

What's an example of context switching?

Stopping in the middle of writing a report to answer a chat message, then trying to find your place in the report again.

Is multitasking the same as context switching?

What people call multitasking is usually rapid context switching between tasks.

How can I tell if context switching is hurting me?

If you end busy days unsure what you finished, or keep rereading your own work to find your place, frequent switching is a likely cause.

What's the opposite of context switching?

Focusing on one task for an extended period, sometimes called single-tasking or deep work.