Linux kernel | All you need to know
By Linux Torvalds Linus Kernel was created in 1991, it’s a multitasking, and Unix-like operating system kernel. With the hardware of the computer, a kernel is the lowest level of easily replaceable software. Of a Linux operating system, the Linux kernel is the main component. Between computer hardware and its process, it is the core interface. Between the 2 it communicates, as efficiency as possible managing resources.
Like a seed inside a hard shell the kernel is so named because, With the OS and controls all the major functions of the hardware it exists, whether it is any kind of computer.
What kernel does?
The kernel does the 4 jobs:
- Memory Management: To stay what and where keep track of how much memory is used.
- Process management: When and for hoe determine which process can be used in the central processing unit.
- Device drivers: Between the hardware and the processes act as mediator/ interpreter.
- Security and system call: From the process receive requests for services.
kernel space working in its title world is invisible to the user. Where everything is stored it allocates memory and keeps track. As the user space user sees files and web browser. With the kernel through the system call interface, these applications interact.
The kernel fits with the OS where?
As having 3 layers you can think of a Linux machine in context to pull the kernel.
- The Hardware: The processor of central processing unit the button or base the physical machine, the bottom or base of the system made up of memory, Such as storage, network ad graphics as wells in out and output devices.
- The Linux kernel:
In memory that tells the CPU what to do it is software residing. The core of the OS.
-
User processes:
That the kernel manages these are the running programs. What collectively makeup user space user processes. User processes are also known as just process. On CPUs by the run system code exerted in 1 or 2 modes: User mode or kernel mode. To the hardware code running in the kernel mode has unrestricted access, to the CPU and memory, the user mode restricts access to the SCI. For memory, a similar separation exists. For some complicated operations these small separations exist memory like privilege separation for security, building containers, and virtual machines.
In some users, if the process failed this also means, By the kernel, the damage is limited and can be recovered. Kernel process crash cash because of its access to memory and processor. To cross boundaries since there are safeguard in place and permissions required, too many problems user process crashes usually can not cause.
Types of Linux kernel:
To build architectural considerations there are of course different ways to build when building one from scratch.
- Microkernel
- Hybrid kernel
- Monolithic kernel