context (context, environment)

foreword

I believe that many friends have encountered the word context many times in the process of learning programming, but they are a bit confused about what it means. Let's sum it up today. Deepen your understanding of context.

context

context, Chinese translation context. The so-called context is a collection of external environments that a program needs to run successfully. Therefore, the context can also be called the environment. The environment mainly refers to external variables. For example, during the running of the program, external variables are required. Then the external variables must be input one by one in order for the program to execute correctly.
Context switching
The so-called context switching is the switching of the environment. What kind of environment? Program context switching. For example, if one program is switched to another program, the system will save the environment (for example, push some variables into the stack), and then load the environment of the new program (for example, pop the variables in the stack, and finally put them in the context collection) .

reference

https://wenku.baidu.com/view/df311707ac45b307e87101f69e3143323968f5d1.html

Guess you like

Origin blog.csdn.net/qq_44850917/article/details/124695755