Linux Kernel features

Source: Internet
Author: User
Linux Kernel features-general Linux technology-Linux programming and kernel information. For more information, see the following section. Linux is a modern operating system with strong practicability. The backbone of its development is software engineers. Therefore, it is based on practicality and efficiency. Many factors such as industrial specifications and compatibility are also taken into account, therefore, unlike the educational operating system's pursuit of the most advanced theory, the Linux kernel focuses on practicality and efficiency.

Next we will briefly summarize the features of the Linux kernel.

First, the Linux kernel is designed as a single giant kernel (monolithic ?) Structure (compared with the micro-kernel, the micro-kernel is a core software with more functions close to the hardware, it generally only includes primary memory management, synchronization primitives, inter-process communication mechanisms, I/O operations, and interrupt management. This is conducive to scalability and portability. However, the microkernel and other upper-layer modules such as file management, device drivers, virtual memory management, and process management require high communication overhead. Therefore, they are mostly concentrated in the field of theoretical teaching, it is difficult to guarantee the efficiency of industrial applications .), Therefore, it is highly efficient and compact.

Second, before version 2.6, the Linux kernel is a single-threaded structure. The so-called thread structure means that only one execution thread (the execution program in the kernel) can be run in the kernel at the same time, it will not be interrupted by the scheduler to run other tasks. This kernel is not preemptible, and its advantage is that there are no concurrent tasks in the kernel (for single processor ), therefore, many complex synchronization problems are avoided, but the adverse effect is that the non-preemption feature delays the system response speed. New tasks must wait until the current task is executed and exited in the kernel to obtain the running opportunity. In the industrial control field, high response speed is required. As a result of the contribution of Robert love and others after version 2.6, the preemption technology is introduced into the Linux kernel, making it a kernel preemption system, of course, the price is that the synchronization operation is further complicated.

Third, in order to ensure convenient support for new devices and new functions, and without infinitely expanding the kernel size, the Linux system uses modular methods for device drivers or new file systems, the user can dynamically load on site when needed, and can dynamically unload after use. At the same time, you can also customize the kernel and select the appropriate features to remove unnecessary parts from the kernel. Both technologies ensure the kernel's closeness and scalability.

Fourth, the Linux kernel is purely a passive calling service object. The so-called passive means that the only way it serves users is to request a function to run in the kernel space through system calls. The kernel itself is a collection of functions and data structures, and there is no running kernel process serving users (although Linux does have a process called a kernel thread, but it is not used to serve users, but only serves the purpose of the system itself ).

Fifth, the use of virtual memory technology in the Linux Kernel enables the virtual expansion of memory space to as much as 4 GB. Among them, 0-3G belongs to the user space, which is called the user segment, and 3g-4g belongs to the user space and is called the kernel segment. This allows users to write programs to use a much larger storage space than the actual memory.

Sixth, the biggest feature of Linux's file system is the implementation of an abstract file model-VFS (Virtual File System), which belongs to the Unix style. The Virtual File System shields the internal differences between different file systems, allowing users to access different file systems in the same way, you can use the unified interface provided by VFS to exchange data between file systems of different media formats. This abstraction brings infinite vitality to Linux.

7. Linux provides a very effective latency execution mechanism-lower half, Soft Interrupt, tasklet, and 2.6 newly introduced job queues. These technologies ensure that the system can prioritize tasks, select the execution time in finer granularity. This ensures that the system runs at a safe time (without interruption ).

In addition to the features mentioned above, Linux also has many other outstanding features, which will be introduced in an orderly manner in subsequent sections. If you have any questions about the above features, please do not worry, and you will be able to answer your questions later.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.