The document discusses the levels and layers of abstraction in a Linux system. There are three main levels: the hardware level containing the physical components, the kernel level containing the kernel and kernel space, and the user level containing user processes and user space. The kernel runs in kernel mode with unrestricted access, while user processes run in user mode with restricted access to prevent crashes from affecting the whole system.
The document discusses the levels and layers of abstraction in a Linux system. There are three main levels: the hardware level containing the physical components, the kernel level containing the kernel and kernel space, and the user level containing user processes and user space. The kernel runs in kernel mode with unrestricted access, while user processes run in user mode with restricted access to prevent crashes from affecting the whole system.
The document discusses the levels and layers of abstraction in a Linux system. There are three main levels: the hardware level containing the physical components, the kernel level containing the kernel and kernel space, and the user level containing user processes and user space. The kernel runs in kernel mode with unrestricted access, while user processes run in user mode with restricted access to prevent crashes from affecting the whole system.
1. Levels and Layers of Abstraction in a Linux System
a. A layer or level is a classification (or grouping) of a component according to where that component sits between the user and the hardware. b. A Linux system has three main levels:
c. Processes— The running programs that the kernel
manages—collectively make up the system’s upper level, called user space(user process) d. There is a critical difference between the ways that the kernel and user processes run: 1. The kernel runs in kernel mode, and the user processes run in user mode. 2. Code running in kernel mode has unrestricted access to the processor and main memory. This is a powerful but dangerous privilege that allows a kernel process to easily crash the entire system. The area that only the kernel can access is called kernel space. 3. User mode, in comparison, restricts access to a (usually quite small) subset of memory and safe CPU operations. User space refers to the parts of main memory that the user processes can access. If a process makes a mistake and crashes, the consequences are limited and can be cleaned up by the kernel. 4. e. 2.