什么是上下文切换? [英] What is a context switch?
问题描述
我正在阅读有关debuggerstepperboundary
属性的信息,一个站点说它在上下文切换中很有用.
I was reading about the debuggerstepperboundary
attribute and a site says it is is useful in a context switch.
什么是上下文切换?我假设这是从一个线程到另一个线程的切换,还是在执行或安全上下文中?但是,这些并不是特别有根据的猜测,所以我在这里问.
What exactly is a context switch? I'm assuming it is a switch from one thread to another, or in execution or security context? However, these are not particularly educated guesses so I'm asking here.
推荐答案
上下文切换是将CPU从一个进程/线程切换到另一个进程/线程.
Context switch is the switching of the CPU from one process/thread to another process/thread.
人们有时在特定的计算机世界之外使用术语上下文切换来反映他们在自己的生活中正在做的事情. 如果我要回答这个问题,我需要将上下文从考虑A转换为考虑B".
People sometimes use the term context switch outside of the specific computer world to reflect what they are doing in their own lives. "If I am going to answer that question, I need to context switch from thinking about A to thinking about B".
这篇关于什么是上下文切换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!