Skip to main content

What is the Function of the Kernel of an Operating System? Neeraj Mishra The Crazy Programmer

Operating System (OS) is a platform that allows a user to interact with the computer hardware. This serves as the interface between them. Allowing the user to execute different kinds of functions on the machine and utilize the hardware to the fullest.

A kernel is a structure over which an operating system handles all the fundamental processes and resources which are required during the boot sequence. It involves communication with hardware and managing the resources of the machine.

During the booting of the Operating System, the kernel does a “system check” to inspect that all components attached/present on the system like GPU, Harddisk, Processor, Mouse, or Keyboard are working or not. This is the place where the infamous “Keyboard not found, press F to continue” message used to appear. After inspection, the graphical UI appears and the OS is booted. Eventually, the kernel keeps on running in the background handling all the system resources.

What is the Function of the Kernel of an Operating System?

Types of Kernels

Various types of Kernels are present but the most important ones are Monolithic Kernel and MicroKernel.

Monolithic Kernel

It has a simple approach. It has various modules that are loaded to create a communication pathway between hardware and software. It is in the form of a single block of code form in which information is extracted whenever required or when a bug is encountered. Because of this, there is no need to recompile the kernel even for a small change. One can easily unload a module that is not needed.

MicroKernel

They are different from the Monolithic kernel as they only store the resources for basic tasks. Because of this, they are very small as compared to the prior. For managing all the tasks, it uses a “server”. The task is separated/split into different modules. This approach in although complex but is more efficient as it increases the system stability because only basic services run in the background. As a result, minimum background services run leaving the system free from unnecessary tasks.

Functions of Kernel

  1. A Kernel provides access to various computer resources like the CPU, I/O devices.
  2. It helps in sharing the resources among the various processes so that there are uniform and equal distribution between all process.
  3. It has complete access to system memory and it takes care of memory allocation for different tasks for their execution. This is done by creating virtual partitions on the memory based on the requirement of the application.
  4. All the processes that are performed on the system are through various input/output devices. The kernel allocates these devices. This is done through the device driver which is an integral part of the OS  and its main function is to allow the OS to interact with the connected hardware devices.
  5. It directs the application to the part of memory it (application) can access.
  6. It provides techniques for communication and synchronization between process called IPC (Interprocess communication)
  7. It is very smart in determining and scheduling the time that has to be given to various processes based on the preferences so that multiple programs can be executed on the system.
  8. It also protects from malicious behavior.

Kernel is an immensely complicated component of the OS that provides an interface between hardware and software.

The post What is the Function of the Kernel of an Operating System? appeared first on The Crazy Programmer.



from The Crazy Programmer https://ift.tt/3rGZpoF

Comments

Popular posts from this blog

Difference between Web Designer and Web Developer Neeraj Mishra The Crazy Programmer

Have you ever wondered about the distinctions between web developers’ and web designers’ duties and obligations? You’re not alone! Many people have trouble distinguishing between these two. Although they collaborate to publish new websites on the internet, web developers and web designers play very different roles. To put these job possibilities into perspective, consider the construction of a house. To create a vision for the house, including the visual components, the space planning and layout, the materials, and the overall appearance and sense of the space, you need an architect. That said, to translate an idea into a building, you need construction professionals to take those architectural drawings and put them into practice. Image Source In a similar vein, web development and design work together to create websites. Let’s examine the major responsibilities and distinctions between web developers and web designers. Let’s get going, shall we? What Does a Web Designer Do?

A guide to data integration tools

CData Software is a leader in data access and connectivity solutions. It specializes in the development of data drivers and data access technologies for real-time access to online or on-premise applications, databases and web APIs. The company is focused on bringing data connectivity capabilities natively into tools organizations already use. It also features ETL/ELT solutions, enterprise connectors, and data visualization. Matillion ’s data transformation software empowers customers to extract data from a wide number of sources, load it into their chosen cloud data warehouse (CDW) and transform that data from its siloed source state, into analytics-ready insights – prepared for advanced analytics, machine learning, and artificial intelligence use cases. Only Matillion is purpose-built for Snowflake, Amazon Redshift, Google BigQuery, and Microsoft Azure, enabling businesses to achieve new levels of simplicity, speed, scale, and savings. Trusted by companies of all sizes to meet

2022: The year of hybrid work

Remote work was once considered a luxury to many, but in 2020, it became a necessity for a large portion of the workforce, as the scary and unknown COVID-19 virus sickened and even took the lives of so many people around the world.  Some workers were able to thrive in a remote setting, while others felt isolated and struggled to keep up a balance between their work and home lives. Last year saw the availability of life-saving vaccines, so companies were able to start having the conversation about what to do next. Should they keep everyone remote? Should they go back to working in the office full time? Or should they do something in between? Enter hybrid work, which offers a mix of the two. A Fall 2021 study conducted by Google revealed that over 75% of survey respondents expect hybrid work to become a standard practice within their organization within the next three years.  Thus, two years after the world abruptly shifted to widespread adoption of remote work, we are declaring 20