SlideShare a Scribd company logo
1 of 24
Kernel (computing)
By M.HARRY JOSEPH
What is meant by kernel?
 In computing, the kernel is the central component of most
computer operating systems; it is a bridge between
applications and the actual data processing done at the
hardware level.
 The kernel's responsibilities include managing the system's
resources (the communication between hardware and
software components).
 Usually as a basic component of an operating system, a kernel
can provide the lowest-level abstraction layer for the
resources (especially processors and I/O devices) that
application software must control to perform its function.
 It typically makes these facilities available to application
processes through inter-process communication mechanisms
and system calls.
Operating system tasks
are done differently by different kernels,
depending on their design and implementation.
While monolithic kernels execute all the
operating system code in the same address space
to increase the performance of the system,
microkernels run most of the operating system
services in user space as servers, aiming to
improve maintainability and modularity of the
operating system. A range of possibilities exists
between these two extremes.
A kernel connects the application
software to the hardware of a computer.
A typical vision of a computer architecture as a series of abstraction layers:
hardware, firmware, assembler, kernel, operating system and applications
On the definition of "kernel"
 While it is today mostly called the kernel, originally the same part of the operating
system was also called the nucleus or core, and was conceived as containing only
the essential support features of the operating system.
 However the term core has also been used to refer to the primary memory of a
computer system, because some early computers used a form of memory called
core memory.
Features of kernel
A kernel will usually provide features for
 low-level schedulingof processes (dispatching),
 inter-process communication,
 process synchronization,
 context switching,
 manipulation of process control blocks, interrupt
handling,
 process creation and
 destruction, and
 process suspension and
 resumption
Kernel basic facilities
The kernel's primary purpose is to manage the
computer's resources and allow other programs to
run and use these resources.
Typically, the resources consist of:
 The CPU, the processor. This is the most central part
of a computer system, responsible for running or
executing programs on it.
 The kernel takes responsibility for deciding at any
time which of the many running programs should be
allocated to the processor or processors (each of
which can usually run only one program at a time)
Kernel basic facilities (Conti-)
 The kernel is responsible for deciding which memory
each process can use, and determining what to do
when not enough is available.
 Any Input/Output (I/O) devices present in the
computer, such as keyboard, mouse, disk drives,
printers, displays, etc. The kernel allocates requests
from applications to perform I/O to an appropriate
device (or subsection of a device, in the case of files on
a disk or windows on a display) and provides
convenient methods for using the device (typically
abstracted to the point where the application does not
need to know implementation details of the device).
monolithic kernels
 execute all of their code in the same address space
(kernel space) microkernels try to run most of their
services in user space, aiming to improve
maintainability and modularity of the codebase.
 Most kernels do not fit exactly into one of these
categories, but are rather found in between these two
designs.
 These are called hybrid kernels.
 More exotic designs such as nanokernels and
exokernels are available, but are seldom used for
production systems. The Xen hypervisor, for example, is
an exokernel.
monolithic kernel
 In a monolithic kernel, all OS services run
along with the main kernel thread, thus also
residing in the same memory area.
 This approach provides rich and powerful
hardware access.
 Some developers, such as UNIX developer
Ken Thompson, maintain that it is "easier to
implement a monolithic kernel“than
microkernels.
 The main disadvantages of monolithic
kernels are the dependencies between
system components — a bug in a device
driver might crash the entire system — and
the fact that large kernels can become very
difficult to maintain.
What is meant by microkernel?
In the microkernel
approach, the kernel itself
only provides basic
functionality that allows
the execution of servers,
separate programs that
assume former kernel
functions, such as device
drivers, GUI servers, etc.
The microkernel approaches:
• consists of defining a simple abstraction over the hardware, with a set of
primitives or system calls to implement minimal OS services such as
memory management, multitasking, and inter-process communication.
Other services, including those normally provided by the kernel, such as
networking, are implemented in user-space programs, referred to as
servers.
• Microkernels are easier to maintain than monolithic kernels, but the large
number of system calls and context switches might slow down the system
because they typically generate more overhead than plain function calls.
• A microkernel allows the implementation of the remaining part of the
operating system as a normal application program written in a high-level
language, and the use of different operating systems on top of the same
unchanged kernel.
• It is also possible to dynamically switch among operating systems and to
have more than one active simultaneously.[7]
Hybrid kernels
 This approach combines the speed and
simpler design of a monolithic kernel with
the modularity and execution safety of a
microkernel.
 are a compromise between the monolithic
and microkernel designs.
 This implies running some services (such as
the network stack or the filesystem) in
kernel space to reduce the performance
overhead of a traditional microkernel, but
still running kernel code (such as device
drivers) as servers in user space.
Nanokernels
delegates virtually all services — including
even the most basic ones like interrupt
controllers or the timer — to device drivers to
make the kernel memory requirement even
smaller than a traditional microkernel
exokernel
An exokernel is a type of kernel that does not
abstract hardware into theoretical models.
Instead it allocates physical hardware resources,
such as processor time, memory pages, and disk
blocks, to different programs.
A program running on an exokernel can link to a
library operating system that uses the exokernel
to simulate the abstractions of a well-known OS,
or it can develop application-specific abstractions
for better performance.
Mac OS X
is based on Darwin, which uses a Hybrid
Kernel called XNU, which was created
combining the 4.3BSD kernel and the Mach
kernel.
Four popular categories or kinds of
Kernels namely
Monolithic kernels,
Microkernels,
Hybrid kernels and
 Exokernels.
Monolithic kernels
are part of Unix-like operating systems like Linux
,FreeBSD etc. These types of kernels consist of
the core functions of the operating system and
the device drivers with the ability to load
modules at runtime.
Microkernels
are part of the operating systems like AIX, BeOS,
Hurd, Mach, Mac OS X, MINIX, QNX. Etc. These
types of kernels normally provide only the
minimal services such as defining memory
address spaces, Inter-process communication
(IPC) and the process management. The other
functions such as running the hardware
processes are not handled directly by
microkernels.
Hybrid kernels
are part of the operating systems such as
Microsoft Windows NT, 2000 and XP. DragonFly
BSD etc. These types of kernels are extensions of
microkernels with some properties of monolithic
kernels. Unlike monolithic kernels, these types
of kernels are unable to load modules at
runtime on their own.
Exokernels
are evolving and still under experimental stage
in development of an operating system that
could incorporate multiple library operating
systems and are intended to simultaneously run
multiple operating systems of different kinds like
Linux and Microsoft Windows together using
appropriate Application Programming Interface
(API).

More Related Content

What's hot

What's hot (20)

Linux seminar
Linux seminarLinux seminar
Linux seminar
 
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION
OPERATING SYSTEMSDESIGN AND IMPLEMENTATIONOPERATING SYSTEMSDESIGN AND IMPLEMENTATION
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION
 
Evolution of operating system
Evolution of operating systemEvolution of operating system
Evolution of operating system
 
Linux OS presentation
Linux OS presentationLinux OS presentation
Linux OS presentation
 
Operating system Tutorial.
Operating system Tutorial.Operating system Tutorial.
Operating system Tutorial.
 
Operating system
Operating systemOperating system
Operating system
 
Windows V/S Linux OS - Comparison
Windows V/S Linux OS - ComparisonWindows V/S Linux OS - Comparison
Windows V/S Linux OS - Comparison
 
Linux crontab
Linux crontabLinux crontab
Linux crontab
 
Remote administration
Remote administrationRemote administration
Remote administration
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
Operating system architecture
Operating system architectureOperating system architecture
Operating system architecture
 
Linux
LinuxLinux
Linux
 
Systems Administration
Systems AdministrationSystems Administration
Systems Administration
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Network operating system
Network operating systemNetwork operating system
Network operating system
 
System Administration DCU
System Administration DCUSystem Administration DCU
System Administration DCU
 
Linux introduction
Linux introductionLinux introduction
Linux introduction
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Handheld operting system
Handheld operting systemHandheld operting system
Handheld operting system
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 

Similar to What is a Kernel in Computing? Exploring Monolithic, Micro, Hybrid & Exokernel Designs

Linux kernel Architecture and Properties
Linux kernel Architecture and PropertiesLinux kernel Architecture and Properties
Linux kernel Architecture and PropertiesSaadi Rahman
 
Kernel. Operating System
Kernel. Operating SystemKernel. Operating System
Kernel. Operating Systempratikkadam78
 
lecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categorieslecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categoriesWajeehaBaig
 
Mohammad ali
Mohammad aliMohammad ali
Mohammad aliali12424
 
Embedded Operating System-Kernel Features.pptx
Embedded Operating System-Kernel Features.pptxEmbedded Operating System-Kernel Features.pptx
Embedded Operating System-Kernel Features.pptxssuseradc877
 
Hybrid kernel
Hybrid kernelHybrid kernel
Hybrid kernelAbu Azzam
 
SEC.3 Linux vs Unix Kernel.pptxnnnnnnnnnnnnnnnnnnnn
SEC.3 Linux vs Unix Kernel.pptxnnnnnnnnnnnnnnnnnnnnSEC.3 Linux vs Unix Kernel.pptxnnnnnnnnnnnnnnnnnnnn
SEC.3 Linux vs Unix Kernel.pptxnnnnnnnnnnnnnnnnnnnnabdulrahmaanwalid
 
OS-description
OS-descriptionOS-description
OS-descriptionsfu-kras
 
ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology BasicMayank Garg
 
Operating system 15 micro kernel based os
Operating system 15 micro kernel based osOperating system 15 micro kernel based os
Operating system 15 micro kernel based osVaibhav Khanna
 

Similar to What is a Kernel in Computing? Exploring Monolithic, Micro, Hybrid & Exokernel Designs (20)

In a monolithic kerne1
In a monolithic kerne1In a monolithic kerne1
In a monolithic kerne1
 
In a monolithic kerne1
In a monolithic kerne1In a monolithic kerne1
In a monolithic kerne1
 
KERNEL.pptx
KERNEL.pptxKERNEL.pptx
KERNEL.pptx
 
kernels
 kernels kernels
kernels
 
Linux kernel Architecture and Properties
Linux kernel Architecture and PropertiesLinux kernel Architecture and Properties
Linux kernel Architecture and Properties
 
Kernel. Operating System
Kernel. Operating SystemKernel. Operating System
Kernel. Operating System
 
lecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categorieslecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categories
 
Walking around linux kernel
Walking around linux kernelWalking around linux kernel
Walking around linux kernel
 
In a monolithic kernel
In a monolithic kernelIn a monolithic kernel
In a monolithic kernel
 
Mohammad ali
Mohammad aliMohammad ali
Mohammad ali
 
Kernel (OS)
Kernel (OS)Kernel (OS)
Kernel (OS)
 
Embedded Operating System-Kernel Features.pptx
Embedded Operating System-Kernel Features.pptxEmbedded Operating System-Kernel Features.pptx
Embedded Operating System-Kernel Features.pptx
 
Hybrid kernel
Hybrid kernelHybrid kernel
Hybrid kernel
 
Kernels and its types
Kernels and its typesKernels and its types
Kernels and its types
 
Bhagyashri k os-tutorial1
Bhagyashri k os-tutorial1Bhagyashri k os-tutorial1
Bhagyashri k os-tutorial1
 
SEC.3 Linux vs Unix Kernel.pptxnnnnnnnnnnnnnnnnnnnn
SEC.3 Linux vs Unix Kernel.pptxnnnnnnnnnnnnnnnnnnnnSEC.3 Linux vs Unix Kernel.pptxnnnnnnnnnnnnnnnnnnnn
SEC.3 Linux vs Unix Kernel.pptxnnnnnnnnnnnnnnnnnnnn
 
OS-description
OS-descriptionOS-description
OS-description
 
ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology Basic
 
Exokernel
ExokernelExokernel
Exokernel
 
Operating system 15 micro kernel based os
Operating system 15 micro kernel based osOperating system 15 micro kernel based os
Operating system 15 micro kernel based os
 

More from Teja Bheemanapally (20)

Teradata
TeradataTeradata
Teradata
 
Teradata
TeradataTeradata
Teradata
 
Linux or unix interview questions
Linux or unix interview questionsLinux or unix interview questions
Linux or unix interview questions
 
Linux notes
Linux notesLinux notes
Linux notes
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Linux01122011
Linux01122011Linux01122011
Linux01122011
 
Installing red hat enterprise linux1
Installing red hat enterprise linux1Installing red hat enterprise linux1
Installing red hat enterprise linux1
 
Linux basic commands tutorial
Linux basic commands tutorialLinux basic commands tutorial
Linux basic commands tutorial
 
Common linuxcommandspocketguide07
Common linuxcommandspocketguide07Common linuxcommandspocketguide07
Common linuxcommandspocketguide07
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
Basic commands
Basic commandsBasic commands
Basic commands
 
File system hierarchy standard
File system hierarchy standardFile system hierarchy standard
File system hierarchy standard
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
15 practical grep command examples in linux
15 practical grep command examples in linux15 practical grep command examples in linux
15 practical grep command examples in linux
 
25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules examples25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules examples
 
Shell intro
Shell introShell intro
Shell intro
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Kernel (computing)
Kernel (computing)Kernel (computing)
Kernel (computing)
 
Installing red hat enterprise linux1
Installing red hat enterprise linux1Installing red hat enterprise linux1
Installing red hat enterprise linux1
 
Ftp
FtpFtp
Ftp
 

Recently uploaded

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 

Recently uploaded (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 

What is a Kernel in Computing? Exploring Monolithic, Micro, Hybrid & Exokernel Designs

  • 2. What is meant by kernel?  In computing, the kernel is the central component of most computer operating systems; it is a bridge between applications and the actual data processing done at the hardware level.  The kernel's responsibilities include managing the system's resources (the communication between hardware and software components).  Usually as a basic component of an operating system, a kernel can provide the lowest-level abstraction layer for the resources (especially processors and I/O devices) that application software must control to perform its function.  It typically makes these facilities available to application processes through inter-process communication mechanisms and system calls.
  • 3. Operating system tasks are done differently by different kernels, depending on their design and implementation. While monolithic kernels execute all the operating system code in the same address space to increase the performance of the system, microkernels run most of the operating system services in user space as servers, aiming to improve maintainability and modularity of the operating system. A range of possibilities exists between these two extremes.
  • 4. A kernel connects the application software to the hardware of a computer.
  • 5. A typical vision of a computer architecture as a series of abstraction layers: hardware, firmware, assembler, kernel, operating system and applications
  • 6. On the definition of "kernel"  While it is today mostly called the kernel, originally the same part of the operating system was also called the nucleus or core, and was conceived as containing only the essential support features of the operating system.  However the term core has also been used to refer to the primary memory of a computer system, because some early computers used a form of memory called core memory.
  • 7. Features of kernel A kernel will usually provide features for  low-level schedulingof processes (dispatching),  inter-process communication,  process synchronization,  context switching,  manipulation of process control blocks, interrupt handling,  process creation and  destruction, and  process suspension and  resumption
  • 8. Kernel basic facilities The kernel's primary purpose is to manage the computer's resources and allow other programs to run and use these resources. Typically, the resources consist of:  The CPU, the processor. This is the most central part of a computer system, responsible for running or executing programs on it.  The kernel takes responsibility for deciding at any time which of the many running programs should be allocated to the processor or processors (each of which can usually run only one program at a time)
  • 9. Kernel basic facilities (Conti-)  The kernel is responsible for deciding which memory each process can use, and determining what to do when not enough is available.  Any Input/Output (I/O) devices present in the computer, such as keyboard, mouse, disk drives, printers, displays, etc. The kernel allocates requests from applications to perform I/O to an appropriate device (or subsection of a device, in the case of files on a disk or windows on a display) and provides convenient methods for using the device (typically abstracted to the point where the application does not need to know implementation details of the device).
  • 10. monolithic kernels  execute all of their code in the same address space (kernel space) microkernels try to run most of their services in user space, aiming to improve maintainability and modularity of the codebase.  Most kernels do not fit exactly into one of these categories, but are rather found in between these two designs.  These are called hybrid kernels.  More exotic designs such as nanokernels and exokernels are available, but are seldom used for production systems. The Xen hypervisor, for example, is an exokernel.
  • 11. monolithic kernel  In a monolithic kernel, all OS services run along with the main kernel thread, thus also residing in the same memory area.  This approach provides rich and powerful hardware access.  Some developers, such as UNIX developer Ken Thompson, maintain that it is "easier to implement a monolithic kernel“than microkernels.  The main disadvantages of monolithic kernels are the dependencies between system components — a bug in a device driver might crash the entire system — and the fact that large kernels can become very difficult to maintain.
  • 12. What is meant by microkernel? In the microkernel approach, the kernel itself only provides basic functionality that allows the execution of servers, separate programs that assume former kernel functions, such as device drivers, GUI servers, etc.
  • 13. The microkernel approaches: • consists of defining a simple abstraction over the hardware, with a set of primitives or system calls to implement minimal OS services such as memory management, multitasking, and inter-process communication. Other services, including those normally provided by the kernel, such as networking, are implemented in user-space programs, referred to as servers. • Microkernels are easier to maintain than monolithic kernels, but the large number of system calls and context switches might slow down the system because they typically generate more overhead than plain function calls. • A microkernel allows the implementation of the remaining part of the operating system as a normal application program written in a high-level language, and the use of different operating systems on top of the same unchanged kernel. • It is also possible to dynamically switch among operating systems and to have more than one active simultaneously.[7]
  • 14. Hybrid kernels  This approach combines the speed and simpler design of a monolithic kernel with the modularity and execution safety of a microkernel.  are a compromise between the monolithic and microkernel designs.  This implies running some services (such as the network stack or the filesystem) in kernel space to reduce the performance overhead of a traditional microkernel, but still running kernel code (such as device drivers) as servers in user space.
  • 15. Nanokernels delegates virtually all services — including even the most basic ones like interrupt controllers or the timer — to device drivers to make the kernel memory requirement even smaller than a traditional microkernel
  • 16. exokernel An exokernel is a type of kernel that does not abstract hardware into theoretical models. Instead it allocates physical hardware resources, such as processor time, memory pages, and disk blocks, to different programs. A program running on an exokernel can link to a library operating system that uses the exokernel to simulate the abstractions of a well-known OS, or it can develop application-specific abstractions for better performance.
  • 17. Mac OS X is based on Darwin, which uses a Hybrid Kernel called XNU, which was created combining the 4.3BSD kernel and the Mach kernel.
  • 18.
  • 19.
  • 20. Four popular categories or kinds of Kernels namely Monolithic kernels, Microkernels, Hybrid kernels and  Exokernels.
  • 21. Monolithic kernels are part of Unix-like operating systems like Linux ,FreeBSD etc. These types of kernels consist of the core functions of the operating system and the device drivers with the ability to load modules at runtime.
  • 22. Microkernels are part of the operating systems like AIX, BeOS, Hurd, Mach, Mac OS X, MINIX, QNX. Etc. These types of kernels normally provide only the minimal services such as defining memory address spaces, Inter-process communication (IPC) and the process management. The other functions such as running the hardware processes are not handled directly by microkernels.
  • 23. Hybrid kernels are part of the operating systems such as Microsoft Windows NT, 2000 and XP. DragonFly BSD etc. These types of kernels are extensions of microkernels with some properties of monolithic kernels. Unlike monolithic kernels, these types of kernels are unable to load modules at runtime on their own.
  • 24. Exokernels are evolving and still under experimental stage in development of an operating system that could incorporate multiple library operating systems and are intended to simultaneously run multiple operating systems of different kinds like Linux and Microsoft Windows together using appropriate Application Programming Interface (API).