gpt4 book ai didi

language-agnostic - 是否必须有模式切换才能有资格作为上下文切换?

转载 作者:行者123 更新时间:2023-12-01 23:01:16 24 4
gpt4 key购买 nike

是否必须有模式切换,即来自 user modekernel mode为了将 Action 称为 context switch ?

最佳答案

不是。并不是所有的处理器都有 privilege levels .

上下文切换通常意味着从 Process Control Block 恢复执行状态.然而,上下文的概念是实现定义的。来自 Wikipedia :

What constitutes the context is determined by the processor and the operating system.
...
When a transition between user mode and kernel mode is required in an operating system, a context switch is not necessary; a mode transition is not by itself a context switch. However, depending on the operating system, a context switch may also take place at this time.

关于language-agnostic - 是否必须有模式切换才能有资格作为上下文切换?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7626363/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com