Skip to main content

All you need to know about Kernel...


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:
  1. The kernel is the core of an operating system. Without Kernel, OS is of no use.
  2. All other components rely on the kernel.
  3. The kernel manages file system access, memory, processes, devices and resource allocation on a system.
  4. The kernel also controls hardware devices plugged into the system.
  5. It is one of the first elements to be loaded on startup and remains in memory during the computer's operation.
  6. The kernel also contains system-level commands and other functions that are normally hidden from users.
Now that you've understood what actually a kernel is, let's learn about user space and kernel space.
      
      crux points of User Space and Kernel Space:
  1. Kernel tends to divide the software running in memory into two spaces-User Space and Kernel Space.
  2. Kernel Space is simply space where kernel executes the services that it provides.
  3. The User Space is the area of memory outside the kernel space.
  4. 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.
  5. Software running in user space can be able to access resources provided by kernel space through the use of system callsThese system calls provide the user-space application with the resources it needs to perform a task.
  6. The split between these memory regions is useful because it promotes greater stability and security.
  7. The software in one space cannot necessarily interact with the software in the other space.
Now that you've understood the difference between user space and kernel space, let's learn about the types of the kernel.

      crux points of Types of Kernels:
  1. Kernels can be classified into two types-Monolithic Kernel and MicroKernel.
  2. 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.
  3. 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.
  4. In MicroKernel architecture, the kernel itself runs the minimum amount of resources necessary to actually implement a fully functional operating system.
  5. When compared to monolithic kernels, microkernels have smaller kernel space and larger user space.
  6. This means microkernels are smaller in overall size and consume less memory. In addition, they are typically more stable. 
  7. However, microkernels tend to offer worse performance than monolithic kernels.
Cheers! we have covered a whole lot in this post. This is probably the first post of my blog which is so lengthy!!


Comments

Popular posts from this blog

First post!

Hello World, My name is Sai Rohith Karanam, currently pursuing BTech Computer Science Engineering at Lovely Professional University, Punjab. I am a tyro in writing blogs. I'm just exploring a new field in my life. Actually, I would like to share something that happened before writing this blog. From the past 5 days, I was constantly trying to write a blog and was searching like hell all over the internet. All the questions in my mind like, where to publish my blog? what to write in my blog? These type of questions kept flashing through my mind honestly till today afternoon. I then saw some videos of "how to own a domain name and buy web hosting for a cheaper price", the cheaper price I finally got is 6000 INR, but I don't want to take a risk by affording money as I am still a novice. If at all I want to afford the money, let me gain a little bit of experience by writing here and then afford it later. Then, all of a sudden, an idea flashed through my mind and s...

10 lessons I have learnt in 2020...

2020 is a year of shocks, surprises, learnings and a lot of introspection for me. I know with the arise of corona pandemic, many people have lost their lives, lost their jobs, lost their own families but still, there are a lot of things we need to be grateful for. For example, at this moment, you are alive, you are reading this, your senses are working properly and above all, your health is perfectly alright in spite of the pandemic.  Now tell me, how many good things are there that we need to be grateful for amidst of corona chaos? Every year is an experience we gain for the future, experience from the mistakes that we've done, experience from the way we have responded in a particular situation and experience from our self-fulfilling prophecies. So like everyone else, this year has really taught me some valuable lessons which I believe are the first step to achieving my goals. So I thought, why not share my experience of this year with people so that they may learn something out o...

Purpose in Life vs Purpose of Life

A gentle disclaimer, This post is only written on the basis of my thoughts and perspectives. It is not intended to hurt anyone's beliefs and traditions. Okay, let's start. We study at prestigious universities, we get the highest paying jobs, we get lots of money which is well enough to buy every single thing for our own comfort, our parents will be very proud of everything we have achieved and a lot more praise from the society. Are these enough for your life to be successful? If you said no, you're on the right path. But if you said yes, Think again! Today we are in the year 2020, let's move a 1000 years back. Because you were born in the 20th or 21st century, you are struggling to become a doctor or an IT professional. What if you were born 1000 years ago? Well, you might opt fishing as your career, right? What did this symbolise?  Our purpose in life, which means it is the purpose which we should fulfil to make a living for our life keeps on varying.  Today, you are ...