Linux 用户态与内核态

Linux139

Linux 用户态与内核态

Linux 用户态与内核态

系统调用将Linux整个体系分为用户态和内核态。

内核:它是一种特殊的软件程序,控制计算机的硬件资源(例如:协调CPU资源,分配内存资源),并提供上层应用程序运行的环境。

应用程序的执行必须依托于内核提供的资源,包括CPU资源、存储资源、I/O资源等。为了使上层应用能够访问到这些资源,内核必须为上层应用提供访问的接口:即系统调用。

用户模式和内核模式的权限不同,用户模式下的进程可以访问的资源受到很大的控制,运行在内核模式下的进程可以“为所欲为”。

[En]

The permissions of user mode and kernel mode are different, the resources that can be accessed by processes in user mode are greatly controlled, and processes running in kernel mode can "do whatever they want".

Linux 用户态与内核态

从整体上看,整个操作系统分为两层:用户模式和内核模式。这种分层架构不仅极大地提高了资源管理的可扩展性和灵活性,而且方便了用户的调用和资源的集中管理。带来一定程度的安全感。

[En]

On the whole, the whole operating system is divided into two layers: user mode and kernel mode. This hierarchical architecture not only greatly improves the scalability and flexibility of resource management, but also facilitates users' call and centralized management of resources. bring a certain degree of security.

Linux 用户态与内核态

Linux 用户态与内核态

输入验证码查看隐藏内容

扫描二维码关注本站微信公众号 Johngo学长
或者在微信里搜索 Johngo学长
回复 svip 获取验证码
wechat Johngo学长