Home > Common Problem > When the CPU executes operating system code, what state is the processor in?

When the CPU executes operating system code, what state is the processor in?

王林
Release: 2020-07-17 15:14:08
Original
20607 people have browsed it

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, what state is the processor in?

#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!

Related labels:
cpu
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template