Linux Kernel Learning Summary
Together original works reproduced please specify the source "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000
Learning Notes Summary
How the first section of the computer works
How the second section of the operating system works
The third section constructs a simple Linux system menuos
The fourth section of the system called Three layers of skin (top)
The fifth section of the system calls three layers of skin (bottom)
Section Sixth description of the process and creation of the process
Seventh. Loading of executable programs
Section eighth process switching and general execution process
Understanding of Linux systems and learning about Linux kernels
Linux is an integrated kernel (monolithic kernel) system. "Kernel" refers to a hardware abstraction layer, disk and file system control, multi-tasking and other functions of the system software. A kernel is not a complete set of operating systems.
Understand how a computer works
According to the von Neumann architecture, the computer can be analyzed from two angles of hardware and software, the hardware is more complicated, not only the CPU and various storage devices, but also the running service of the CPU. CPU through the implementation of the bus transmission of a variety of instructions to complete the work, through a variety of built-in software to "translate" the command into machine-readable instructions, the process of executing instructions is constantly in the register to store, revoke data, and finally complete the "computational process."
Understand how the operating system works
The operating system also has "two Swords", which are the interrupt context and the process context switch. The operating system is tasked with basic tasks such as managing and configuring memory, prioritizing system resource supply and demand, controlling input and output devices, operating networks, and managing file systems. The operating system through the control of the process to complete each thing, the process through the control of data compression, pop-up stack, set a time slice and other ways to switch and interrupt the process context, so that the operating system can work properly
Understanding the Linux system startup process
The Startkernel is the starting point of the kernel startup and exists in the Main.c file in the init directory. Initkernel the pcb,0 process, which is created manually, is the final idle. Regardless of which part of the analysis kernel involves Startkernel, the module needs to call Startkernel when it initializes. The last sentence in Startkernel Restinit is the No. 0 process that has been in existence since the kernel was started, and process # No. 0 created the 1th process and other kernel service threads. The idle process is dispatched when there is no incoming program in the system, that is, a kernel starts with a NO. 0 process, process No. 0 creates a 1th process, a process creates another process and thread, a lifetime of two, and the second birth three, Sansheng everything, the system kernel starts
What are the biggest gains in learning the Linux kernel analysis course? What is your biggest regret after learning the Linux kernel analysis course?
I am exposed to the Mooc this learning method, let me have a certain understanding of the Linux kernel, although the basic knowledge is not solid, but this kind of easy to explain the way I have to accept the content of the lectures, through the video explanation can not understand the place of repeated learning, after-school test, matching experiments, In the middle school, the effect is very obvious.
The contents of the arrangement are few, but also want to add some basic knowledge of Linux operations in the course, so that we can understand both the kernel and master the use of methods, do more to try and explore.
Linux Kernel Learning Summary