Context Switching: Difference between revisions
m
Deleted the hideously wrong "in one pathological case that doesn't make sense hardware task switching only sucks slightly" misinformation
[unchecked revision] | [unchecked revision] |
(brendan should read more closely) |
m (Deleted the hideously wrong "in one pathological case that doesn't make sense hardware task switching only sucks slightly" misinformation) |
||
Line 58:
Because the hardware mechanism saves almost all of the CPU state it can be slower than is necessary. For example, when the CPU loads new segment registers it does all of the access and permission checks that are involved. As most modern operating systems don't use segmentation, loading the segment registers during context switches may be not be required, so for performance reasons these operating systems tend not to use the hardware context switching mechanism. Due to it not being used as much CPU manufacturers don't optimize CPUs for this method anymore (AFAIK). In addition the new 64 bit CPU's do not support hardware context switches when in 64 bit/long mode.
[[Category:Processes and Threads]]
|