Chapter One introduction to the Linux kernel

Source: Internet
Author: User
1. Operating system and Kernel

Operating systems are those parts of the entire system that are responsible for the most basic functions and systems management. Includes kernels, device drivers, boot bootstrapper, command-line shell, or other kinds of user interfaces, basic file management tools, and system tools.

The user interface is the external manifestation of the operating system, and the kernel is the built-in core.

Applications running in the system communicate with the kernel through system calls. The application usually calls the library function and then the library function through the system call interface, let the kernel do a variety of different tasks on its behalf . Some library calls provide a number of features that the system call does not have, and in those more complex functions, invoking the kernel is usually just a step in the work. For example, the printf function, which provides operations such as caching and formatting data, and write is just one of the actions, and some library functions correspond to a system call of one by one, for example, the Open library function and the open system call. Some library functions do not need to directly invoke system-level operations, such as strcpy ().

1) When running in user space, the user process is executed

2) run in kernel space, in the process context, at which point the kernel executes in kernel space on behalf of a particular process.

3) running in kernel space, in the interrupt context, regardless of any process, the kernel handles a specific interrupt on behalf of the hardware.

Chapter One introduction to the Linux kernel

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.