This post explains very briefly what all you need to know about the kernel, types of the kernel and the differences between user space and kernel space.
crux points of Kernel:
- The kernel is the core of an operating system. Without Kernel, OS is of no use.
- All other components rely on the kernel.
- The kernel manages file system access, memory, processes, devices and resource allocation on a system.
- The kernel also controls hardware devices plugged into the system.
- It is one of the first elements to be loaded on startup and remains in memory during the computer's operation.
- The kernel also contains system-level commands and other functions that are normally hidden from users.
crux points of User Space and Kernel Space:
- Kernel tends to divide the software running in memory into two spaces-User Space and Kernel Space.
- Kernel Space is simply space where kernel executes the services that it provides.
- The User Space is the area of memory outside the kernel space.
- Userspace can include everything from high-level applications that user interacts with directly to processes that run in the background and to various low-level system libraries.
- Software running in user space can be able to access resources provided by kernel space through the use of system calls. These system calls provide the user-space application with the resources it needs to perform a task.
- The split between these memory regions is useful because it promotes greater stability and security.
- The software in one space cannot necessarily interact with the software in the other space.
crux points of Types of Kernels:
- Kernels can be classified into two types-Monolithic Kernel and MicroKernel.
- In a Monolithic Kernel, all system modules, such as device drivers or file systems run in kernel space. As a result, the monolithic kernel can interact quickly with devices.
- However, its main disadvantage is its size, which leads to higher consumption of RAM. In addition, a failure in a device driver can lead to system instability in a monolithic kernel.
- In MicroKernel architecture, the kernel itself runs the minimum amount of resources necessary to actually implement a fully functional operating system.
- When compared to monolithic kernels, microkernels have smaller kernel space and larger user space.
- This means microkernels are smaller in overall size and consume less memory. In addition, they are typically more stable.
- However, microkernels tend to offer worse performance than monolithic kernels.
Comments
Post a Comment