This article is from the Threads Programming FAQ, by Bryan O'Sullivan email@example.com with numerous contributions by others.
A context switch is the action of switching a CPU between executing
one thread and another (or transferring control between them). This
may involve crossing one or more protection boundary.