Modern Operating System 4th 的 Introduction 章节介绍到,大部分操作分为 operation 分为两种,kernel mode 和 user mode。
内核模式 kernel mode 又叫(管理者模式 supervisor mode)。在 kernel mode 下,operation 是拥有完全的权限访问所有硬件 以及 执行机器上的所有指令(instruction)。而在 user mode 下,operation 只能执行部分的机器指令(instruction)。至于什么权限或 operation 是能在 user mode 下不能执行,这是取决于据操作系统的具体实现。
操作系统(OS)是属于 Kernel mode 一层。
kernel mode vs root
kernel mode 强调的是系统调用,机器指令(instruction)调用,是最底层的。账户管理 是操作系统(OS)一个功能,而 root 用户(supervisor)则是一个特殊的用户,拥有所有权限(rights/permissions/privileges)。