当前位置:网站首页>Kernel mode and user mode
Kernel mode and user mode
2022-07-19 11:36:00 【wrdoct】
List of articles
Preface
Kernel state and user state .
One 、 Kernel state and user state
In order to prevent the operating system and key data from being destroyed by user programs , The execution state of the processor is divided into kernel state and user state . The user program runs in user mode , The operating system kernel runs in kernel mode .
Kernel state is Operating system management program The state of execution , Be able to execute... Including privileged instructions All instructions , Be able to access the system All storage space .
User status is User programs The state of execution , Cannot execute privileged instructions , Only user address space can be accessed .
Two 、 Switching between kernel state and user state
Switch from user state to kernel state : system call 、 Exceptions and external interrupts .
(1) The system call is the function of the operating system Minimum functional unit , It's provided by the operating system The user interface , The system call itself is a Soft interrupt .
(2) Exceptions are also called Internal interruption , yes Caused by mistake Of , If the file is damaged 、 Page missing fault, etc .
(3) External interruption is notified by two signal lines Processor peripherals The state of change , Belong to Hard interrupt .
3、 ... and 、 Concurrency and parallelism
(1) parallel : Strictly physical At the same time . Such as multi-core CPU.
(2) Concurrent : Macroscopically, it seems that the two programs are running at the same time , It's actually Alternate operation Of . Such as single core CPU Multitasking on .
边栏推荐
- Hot discussion: my husband is 34 years old this year and wants to read a doctoral degree. What should I do in the future to do scientific research?
- 565. Array nesting: regular simulation questions
- Antd form setting array fields
- QT -- excellent open source project
- Will causal learning open the next generation of AI? Chapter 9 Yunji datacanvas officially released the open source project of ylarn causal learning
- A curated list of awesome Qt and QML
- SQL union operator
- Ppde Q2 welcome | welcome 22 AI developers to join the propeller developer technical expert program!
- Learning note 3 -- basic idea of machine learning in planning control
- 翻墙后看什么?最热门的国外网站——翻墙网址导航
猜你喜欢

Leetcode 1252. Number of odd value cells

Will causal learning open the next generation of AI? Chapter 9 Yunji datacanvas officially released the open source project of ylarn causal learning

Getting started with web security - deploy snort open source ids/ips system

Today's sleep quality record 79 points

Limit query of MySQL optimization series

Leetcode 1304. N different integers with zero and

TCP拥塞控制详解 | 7. 超越TCP

Unity dropdown (editable, inputable) drop-down selection box with Text Association

synchronized锁升级

Detailed explanation of MySQL show processlist
随机推荐
翻墙后看什么?最热门的国外网站——翻墙网址导航
热议:老公今年已经34周岁想读博,以后做科研,怎么办?
synchronized锁升级
JVM hook hooks function
Will causal learning open the next generation of AI? Chapter 9 Yunji datacanvas officially released the open source project of ylarn causal learning
Solve the problem that QQ mail and Thunderbird cannot log in to outlook
The basic establishment of the sequence table and the related operations of adding, deleting, modifying and querying (the sequence table described in C language)
A curated list of awesome Qt and QML
梦想CMS 前台搜索SQL注入
pjudge#21652-[PR #4]到底有没有九【数位dp】
SQL UNION操作符
03-1、内联函数、auto关键字、typeid、nullptr
Play with the one-stop scheme of cann target detection and recognition
Configure spectrum navigation for Huawei wireless devices
LOJ 2324 - "Tsinghua training 2017" small y and binary tree
Total number of blocking and waiting in jconsole thread panel (RPM)
03-1. Inline function, auto keyword, typeID, nullptr
Sword finger offer II 041 Average value of sliding window
Mpu9250 ky9250 attitude, angle module and mpu9250 MPL DMA comparison
【无标题】cv 学习1转换