全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 User mode, kernel mode?

又称: user mode · kernel mode

Definition 13.1 University Computer Science — Year 2 · 第 13 章 — Processes and System Calls

A processor runs in user mode or in kernel mode. In user mode, the instructions that drive devices, change the memory map or stop the machine are refused, and only the memory the process was given is reachable. In kernel mode everything is allowed. The kernel of the operating system runs in kernel mode; every other program runs in user mode.

The path of a write. The program calls an ordinary library function, which executes the system-call instruction; the processor switches to kernel mode at a fixed entry point, where the kernel checks the descriptor and the buffer before doing the work. The result returns in a register, in user mode.
The path of a write. The program calls an ordinary library function, which executes the system-call instruction; the processor switches to kernel mode at a fixed entry point, where the kernel checks the descriptor and the buffer before doing the work. The result returns in a register, in user mode.
在原文中阅读 →