context switch

The operating system pausing one thread and resuming another on the same CPU core, which costs time each time it happens.

In more detail

Running far more busy threads than cores causes constant switching, called thrashing, so throughput falls. Matching the number of busy threads to the number of cores avoids it.

Related terms

Taught in

References

Certification courses