In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to parse the Linux kernel, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
The computer is composed of hardware and software. the software operates and controls the computer. the software that completes the control work is called the operating system and is called the "kernel" in Linux.
The Linux kernel consists of five sub-modules. 1. The main task of internal management memory management is how to manage the physical memory of the whole system reasonably and effectively, and at the same time quickly respond to the requests of each subsystem of the kernel for memory allocation. Linux memory management supports virtual memory, and the excess memory is obtained through disk application. Usually, the system only keeps the currently running program blocks in memory, and other program blocks remain in disk. When memory is scarce, memory management is responsible for swapping blocks between disk and memory.
2. Process management mainly controls the access of system processes to CPU. When a process is required to run, the process scheduler starts a new process according to the priority-based scheduling algorithm. Linux supports multitasking, so how do you support multitasking on a single CPU? This work is realized by process scheduling management. When the system is running, each process is allocated a certain amount of time. Then the process scheduler selects each process to run once according to the time slice. For example, when a process runs out of time slices, the scheduler will select a new process to continue to run. Because the switching time and frequency are very fast, users feel that multiple programs are running at the same time. In fact, CPU has only one process running at the same time.
3. Inter-process communication is mainly used to control the synchronization, data sharing and exchange between different processes in user space. Because different user processes have different process space, the communication between processes should be realized with the help of kernel transfer. In general, when a process waits for a hardware operation to complete, it is suspended. When the hardware operation is completed, the process is resumed, and the process is coordinated by the communication mechanism between processes.
4. Virtual file system in the Linux kernel, the virtual file system represents a variety of different file systems with a general file model, which shields many differences in specific file systems, so that the Linux kernel supports many different file systems. This file system can be divided into logical file systems and device drivers: logical file systems refer to the file systems supported by Linux, such as ext2, ext3, fat, etc. Device driver refers to the device driver module written for each hardware controller.
5. Network interface network interface provides support for the implementation of various network standards and various network hardware. Network interface is generally divided into network protocol and network driver. The network protocol part is responsible for implementing every possible network transport protocol. The network device driver is mainly responsible for communicating with hardware devices, and every possible network hardware device has a corresponding device driver.
The above content is how to parse the Linux kernel. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.