When the CPU executes operating system code, the processor is said to be in a management state. The management state is also called the privileged state, system state or core state. It is the state of the machine when the program managed by the operating system is executed. Most computer systems divide the CPU execution state into visual and supervisory states.
#When the CPU executes operating system code, the processor is said to be in a supervisory state.
Introduction to relevant knowledge points:
The pipe state is also called the privileged state, system state or core state. It is the state of the machine when the program managed by the operating system is executed.
Most computer systems divide the CPU execution state into the target state and the management state. The status of the CPU belongs to one bit of the program status word PSW, system mode (0), user mode (1). The CPU alternately executes operating system programs and user programs.
When the CPU processes system programs, the CPU will switch to the supervisory state, and the CPU can execute the complete set of instruction systems in the supervisory state. (Including privileged instructions and non-privileged instructions)
The above is the detailed content of When the CPU executes operating system code, what state is the processor in?. For more information, please follow other related articles on the PHP Chinese website!