4 ms·
x86 has hardware support for context switching, which is basically saving all the registers and jumping to a new address. https://en.wikipedia.org/wiki/Task_st
by js2 3y ago
x86 has hardware support for context switching, which is basically saving all the registers and jumping to a new address.
https://en.wikipedia.org/wiki/Task_state_segment https://en.wikipedia.org/wiki/Task_state_segment
- MuffinFlavored 3y agodoes x86_64 use this?
- skissane 3y agox86-64 still requires Task State Segments (TSS), but it doesn't support using them for their original primary purpose of task switching; rather, they are needed for changing stacks when switching between user and kernel mode. In the original 386 design, the OS kernel would create a separate TSS for each OS process. In x86-64's vestigial use of the concept, there is a single TSS for each CPU, and every process running on that CPU shares the same TSS.