日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > windows >内容正文

windows

《操作系统》CPU如何区分正在运行的是内核程序or应用程序?

發(fā)布時(shí)間:2024/5/17 windows 70 豆豆
生活随笔 收集整理的這篇文章主要介紹了 《操作系统》CPU如何区分正在运行的是内核程序or应用程序? 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

The running process of a program is actually the process that the CPU executes a machine instruction.
程序的運(yùn)行過程實(shí)際上是CPU執(zhí)行機(jī)器指令的過程。

The CPU is divided into two state: “kernel mode” and “user mode”.
CPU分為兩種狀態(tài):“內(nèi)核模式”和“用戶模式”。

When it is in kernel mode, it means that the kernel program is running and can execute privieged instructions. When in user mode, it means that the application program is running and can only execute non privileged instructions.
當(dāng)它處于內(nèi)核模式時(shí),意味著內(nèi)核程序正在運(yùn)行并且可以執(zhí)行特權(quán)指令。在用戶模式下,這意味著應(yīng)用程序正在運(yùn)行,并且只能執(zhí)行非特權(quán)指令。

In fact, there is a register in the CPU called Program Status Word(PSW) register, in which there is a binary bit 1 represents “kernel mode”, 0 represents “user mode”(some operating system are the opposite).
實(shí)際上,CPU中有一個(gè)寄存器叫做程序狀態(tài)字(PSW)寄存器,其中有一個(gè)二進(jìn)制位1表示“內(nèi)核模式”,0表示“用戶模式”(有些操作系統(tǒng)則相反)。

總結(jié)

以上是生活随笔為你收集整理的《操作系统》CPU如何区分正在运行的是内核程序or应用程序?的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。