www.fgks.org   »   [go: up one dir, main page]

SlideShare a Scribd company logo
Seminar 
on 
MICROKERNEL 
BY 
TUSHAR.N.TEKADE 
(ME IT 9114) 
SCTR’s PUNE INSTITUTE OF COMPUTER TECHNOLOGY, 
PUNE
Computer has 2 modes of operation……. 
• Kernel Mode 
• User Mode 
• The OS is the most fundamental piece of software & runs in 
kernel mode(supervisor mode). 
• In this mode, it has complete access to all the h/w and execute 
any instruction the machine is capable of. 
• Everything running in Kernel Mode is clearly a part of OS ,but 
some program running outside it are arguably also part of it or 
closely associated with it.
• Distinction between OS mode and user mode is that if a user 
does not like a particular e-mail reader , he is free to get 
different one or write his own. 
• Whereas he is not free to write his own clock interrupt handler, 
a part of OS & protected by h/w against attempts by user to 
modify it. 
• There are however programs which run in user mode but help 
the OS or perform privileged functions. 
Ex. Changing Password program- not part of OS and not runs in 
kernel mode.
SYSTEM STRUCTURE 
• Design and Implementation of OS not “solvable”, but 
some approaches have proven successful 
• Internal structure of different Operating Systems can 
vary widely 
• Start by defining goals and specifications 
• Affected by choice of hardware, type of system 
• User goals and System goals 
– User goals – operating system should be convenient to 
use, easy to learn, reliable, safe, and fast 
– System goals – operating system should be easy to 
design, implement, and maintain, as well as flexible, 
reliable, error-free, and efficient
• Approach is to partition the task into small components rather 
than a monolithic structure. 
• Each of these modules should be well-defined portions of the 
system , with proper inputs, outputs and functions. 
• All the modules (process , main memory, file, i/o system, 
secondary storage, networking , command-interpreter 
management ) are interconnected and melded into a kernel.
SIMPLE STRUCTURE 
• MS- DOS an example of such system, originally 
designed and implemented to provide most 
functionality in least space(limited h/w). 
• Not divided in modules 
• It has some structure but its interfaces and 
functionalities not well separated.
Microkernel
UNIX 
• OS initially limited by h/w functionality. 
• 2 separable parts 
- System Programs 
- Kernel 
• Consists of everything below the system-call interface 
and above the physical hardware 
• Provides the file system, CPU scheduling, memory 
management, and other operating-system functions; a 
large number of functions for one level
Microkernel
MONOLITHIC STRUCTURE 
• In this approach the entire operating system runs as a 
single program in kernel mode. 
• The operating system is written as a collection of 
procedures, linked together into a single large 
executable binary program. 
• An unwieldy and difficult to understand system.
Microkernel
The main disadvantages of monolithic structures 
are: 
The dependencies between system 
components - a bug in a device driver might 
crash the entire system. 
Large kernels can become very difficult to 
maintain.
LAYERED APPROACH 
• It’s a way of Modularization of system, in which OS 
is broken into number of layers or levels. 
• Each built on top of lower layers, bottom layer(layer 
0) is the h/w & the highest layer (layer N) is user 
interface. 
• OS layer is an implementation of an abstract object 
that is encapsulation of data & of the operations that 
manipulate that data. 
• It contains data structures and routines that can be 
invoked by higher level layers & it can invoke 
operations on lower layer.
Microkernel
Advantages: 
 Modularity 
 Simplifies debugging and system verification. 
 Ease in error solving. 
 Each layer hides the existence of certain data structures, 
operations and h/w from higher layers. 
Difficulties: 
 Careful definition of each layer. 
 They tend to be less efficient than other type(due to overhead 
added by each layer to system call). 
THE system built at the Technische Hogeschool Eindhoven in the 
Netherlands by E. W. Dijkstra (1968) and his students
MICROKERNELS 
• With layered approach the designers have a choice 
where to draw the kernel-user boundary. 
• Traditionally all the layers were in the kernel. 
• In fact, a strong base can be made for putting as little 
as possible in kernel mode because bugs in kernel can 
bring down the system instantly. 
• In contrast user processes can be set up to have less 
power so that a bug there may not be fatal.
• The basic idea behind the microkernel design is to 
achieve high reliability by splitting the OS up into 
smaller but well defined modules , only one mode 
THE MICROKERNEL runs in the kernel mode& the 
rest run as relatively less power ordinary user 
processes. 
• Another function is to provide communication facility 
between client program and various services running. 
BENEFITS: 
 Ease of extending the OS 
 All new services added to user space, thus no need to 
modify kernel , and when needed changes are few 
because microkernel is smaller kernel.
BENEFITS: 
 OS is more easier to port from one h/w design to 
another. 
 More security & reliability since most services are 
running as user rather than kernel processes. 
 If a service fails the rest of OS remains untouched, 
which is in contrast with monolithic system.
• Tru64 UNIX(formerly Digital UNIX) provides a 
UNIX interface to the user , uses microkernel , 
implemented with Mach kernel.(which maps UNIX 
system calls into messages to appropriate user-level 
servies.) 
• The Apple MacOS Server OS is also based on Mach 
Kernel. 
• QNX is RTOS based on Microkernel design, 
providing services for message passing and process 
scheduling.
MINIX 3 
• MINIX 3 is a POSIX conformant, open source 
microkernel system freely available . 
• It is only about a 3200 lines of C & 800 lines of 
assembler for very low level functions such as 
catching interrupts & switching process. 
• The C code manages & schedules processes, handles 
inter process communication & offers a set of about 
35 kernel calls to allow the rest of OS to do its work. 
• These calls does: looking handlers for interrupts, 
moving data between address spaces , installing new 
memory maps for newly created processes.
MINIX 3 Structure
• Lowest layer in user mode: Device Drivers 
Do not have physical access to i/o port space & cannot issue 
i/o command directly. 
• Above lowest layer : Server 
All servers like file server which manages file system i.e. 
create , destroy and manages process. 
One interesting server is “reincarnation server” which 
checks if other server & drivers are working properly and 
if found faulty corrects it…so a self-healing system. 
• User Program obtain OS services by sending short 
messages to the servers asking for the POSIX system 
calls 
• Each layer has exactly the power do its work and nothing 
more , limiting the damage a baggy component can do.
Microkernel
• Idea of Minimal Kernel is to put the mechanism for 
doing something in the kernel but not the policy. 
• Ex. Scheduling Problem 
Mechanism: look for highest priority process & run it. 
Policy: assigning priorities to process , can be done by 
user mode process. 
Thus policy and mechanism can be decoupled and 
kernel can be made smaller. 
“Microkernel (also known as μ-kernel or Samuel 
kernel) is the near-minimum amount of software that 
can provide the mechanisms needed to implement an 
operating system (OS)”

More Related Content

What's hot

Cloud Application architecture styles
Cloud Application architecture styles Cloud Application architecture styles
Cloud Application architecture styles
Nilay Shrivastava
 
System call
System callSystem call
System call
shahadat hossain
 
Memory management ppt
Memory management pptMemory management ppt
Memory management ppt
ManishaJha43
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
vampugani
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
usmankiyani1
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
Adeel Rasheed
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
Haitham Ahmed
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
Mukesh Chinta
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
Prakhar Maurya
 
Levels of Virtualization.docx
Levels of Virtualization.docxLevels of Virtualization.docx
Levels of Virtualization.docx
kumari36
 
Virtual Machine
Virtual MachineVirtual Machine
Virtual Machine
Mehul Boghra
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
venkateswarlu G
 
8 memory management strategies
8 memory management strategies8 memory management strategies
8 memory management strategies
Dr. Loganathan R
 
Mainframe systems
Mainframe systemsMainframe systems
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
Shubhashish Punj
 
computer system structure
computer system structurecomputer system structure
computer system structure
HAMZA AHMED
 
CLOUD COMPUTING UNIT-1
CLOUD COMPUTING UNIT-1CLOUD COMPUTING UNIT-1
CLOUD COMPUTING UNIT-1
Dr K V Subba Reddy
 
RPC: Remote procedure call
RPC: Remote procedure callRPC: Remote procedure call
RPC: Remote procedure call
Sunita Sahu
 
Switching
SwitchingSwitching
Switching
Shankar Gangaju
 
Thread management
Thread management Thread management
Thread management
Ayaan Adeel
 

What's hot (20)

Cloud Application architecture styles
Cloud Application architecture styles Cloud Application architecture styles
Cloud Application architecture styles
 
System call
System callSystem call
System call
 
Memory management ppt
Memory management pptMemory management ppt
Memory management ppt
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
 
Levels of Virtualization.docx
Levels of Virtualization.docxLevels of Virtualization.docx
Levels of Virtualization.docx
 
Virtual Machine
Virtual MachineVirtual Machine
Virtual Machine
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
8 memory management strategies
8 memory management strategies8 memory management strategies
8 memory management strategies
 
Mainframe systems
Mainframe systemsMainframe systems
Mainframe systems
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
computer system structure
computer system structurecomputer system structure
computer system structure
 
CLOUD COMPUTING UNIT-1
CLOUD COMPUTING UNIT-1CLOUD COMPUTING UNIT-1
CLOUD COMPUTING UNIT-1
 
RPC: Remote procedure call
RPC: Remote procedure callRPC: Remote procedure call
RPC: Remote procedure call
 
Switching
SwitchingSwitching
Switching
 
Thread management
Thread management Thread management
Thread management
 

Similar to Microkernel

Operating system lect3 Autosaved.pptx
Operating system lect3 Autosaved.pptxOperating system lect3 Autosaved.pptx
Operating system lect3 Autosaved.pptx
AryanGour1
 
Operating system module
Operating system moduleOperating system module
Operating system module
kiamiel
 
System structure
System structureSystem structure
System structure
RakshiyaRamya
 
chapter 1 introduction to operating system
chapter 1 introduction to operating systemchapter 1 introduction to operating system
chapter 1 introduction to operating system
Aisyah Rafiuddin
 
os_1.pdf
os_1.pdfos_1.pdf
os_1.pdf
HemantBorse6
 
Operating system architecture
Operating system architectureOperating system architecture
Operating system architecture
Sabin dumre
 
Operating system components
Operating system componentsOperating system components
Operating system components
Syed Zaid Irshad
 
OS_MD_1.pdf
OS_MD_1.pdfOS_MD_1.pdf
OS_MD_1.pdf
GauravDagar13
 
_Kernel and Kernel Architectures.ppt
_Kernel and Kernel Architectures.ppt_Kernel and Kernel Architectures.ppt
_Kernel and Kernel Architectures.ppt
HardeepKaurCSEAssist
 
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
WajeehaBaig
 
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
Vaibhav Khanna
 
Aayu Tiwari operating system presentation_240406_095037.pdf
Aayu Tiwari operating system presentation_240406_095037.pdfAayu Tiwari operating system presentation_240406_095037.pdf
Aayu Tiwari operating system presentation_240406_095037.pdf
aayutiwari2003
 
Chapte2:structure and system call of OS.ppt
Chapte2:structure and system call of OS.pptChapte2:structure and system call of OS.ppt
Chapte2:structure and system call of OS.ppt
mizanurrahman38408
 
Operating System-Types-Examples-Advantages & disadvantages
Operating System-Types-Examples-Advantages & disadvantagesOperating System-Types-Examples-Advantages & disadvantages
Operating System-Types-Examples-Advantages & disadvantages
OPTOM Nimra Murtaza
 
Operating System
Operating SystemOperating System
Operating System
MdFaraz20CAB121
 
ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology Basic
Mayank Garg
 
Introduction to operating systems
 Introduction to operating systems Introduction to operating systems
Introduction to operating systems
Kumbirai Junior Muzavazi
 
Operating system 14 unix and kernel based os
Operating system 14 unix and kernel based osOperating system 14 unix and kernel based os
Operating system 14 unix and kernel based os
Vaibhav Khanna
 
Platform Technologies Report (1).pptx
Platform Technologies Report (1).pptxPlatform Technologies Report (1).pptx
Platform Technologies Report (1).pptx
BeviljeanCharcos
 
OS-01.ppt
OS-01.pptOS-01.ppt

Similar to Microkernel (20)

Operating system lect3 Autosaved.pptx
Operating system lect3 Autosaved.pptxOperating system lect3 Autosaved.pptx
Operating system lect3 Autosaved.pptx
 
Operating system module
Operating system moduleOperating system module
Operating system module
 
System structure
System structureSystem structure
System structure
 
chapter 1 introduction to operating system
chapter 1 introduction to operating systemchapter 1 introduction to operating system
chapter 1 introduction to operating system
 
os_1.pdf
os_1.pdfos_1.pdf
os_1.pdf
 
Operating system architecture
Operating system architectureOperating system architecture
Operating system architecture
 
Operating system components
Operating system componentsOperating system components
Operating system components
 
OS_MD_1.pdf
OS_MD_1.pdfOS_MD_1.pdf
OS_MD_1.pdf
 
_Kernel and Kernel Architectures.ppt
_Kernel and Kernel Architectures.ppt_Kernel and Kernel Architectures.ppt
_Kernel and Kernel Architectures.ppt
 
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
 
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
 
Aayu Tiwari operating system presentation_240406_095037.pdf
Aayu Tiwari operating system presentation_240406_095037.pdfAayu Tiwari operating system presentation_240406_095037.pdf
Aayu Tiwari operating system presentation_240406_095037.pdf
 
Chapte2:structure and system call of OS.ppt
Chapte2:structure and system call of OS.pptChapte2:structure and system call of OS.ppt
Chapte2:structure and system call of OS.ppt
 
Operating System-Types-Examples-Advantages & disadvantages
Operating System-Types-Examples-Advantages & disadvantagesOperating System-Types-Examples-Advantages & disadvantages
Operating System-Types-Examples-Advantages & disadvantages
 
Operating System
Operating SystemOperating System
Operating System
 
ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology Basic
 
Introduction to operating systems
 Introduction to operating systems Introduction to operating systems
Introduction to operating systems
 
Operating system 14 unix and kernel based os
Operating system 14 unix and kernel based osOperating system 14 unix and kernel based os
Operating system 14 unix and kernel based os
 
Platform Technologies Report (1).pptx
Platform Technologies Report (1).pptxPlatform Technologies Report (1).pptx
Platform Technologies Report (1).pptx
 
OS-01.ppt
OS-01.pptOS-01.ppt
OS-01.ppt
 

Recently uploaded

20240710 ISSIP GGG Qtrly Community Connection Slides.pptx
20240710 ISSIP GGG Qtrly Community Connection Slides.pptx20240710 ISSIP GGG Qtrly Community Connection Slides.pptx
20240710 ISSIP GGG Qtrly Community Connection Slides.pptx
VaishaliM24
 
NOVEC 1230 Fire Suppression System Presentation
NOVEC 1230 Fire Suppression System PresentationNOVEC 1230 Fire Suppression System Presentation
NOVEC 1230 Fire Suppression System Presentation
miniruwan1
 
Chapter 1 Introduction to Software Engineering and Process Models.pdf
Chapter 1 Introduction to Software Engineering and Process Models.pdfChapter 1 Introduction to Software Engineering and Process Models.pdf
Chapter 1 Introduction to Software Engineering and Process Models.pdf
MeghaGupta952452
 
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYSDPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
RyanMacayan
 
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Robert Pyke
 
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Robert Pyke
 
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
John Gallagher
 
High Profile Girls Call Delhi 9711199171 Provide Best And Top Girl Service An...
High Profile Girls Call Delhi 9711199171 Provide Best And Top Girl Service An...High Profile Girls Call Delhi 9711199171 Provide Best And Top Girl Service An...
High Profile Girls Call Delhi 9711199171 Provide Best And Top Girl Service An...
janvikumar4133
 
AI INTRODUCTION Artificial intelligence.ppt
AI INTRODUCTION Artificial intelligence.pptAI INTRODUCTION Artificial intelligence.ppt
AI INTRODUCTION Artificial intelligence.ppt
GeethaAL
 
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdfLOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
jellyjm
 
ANATOMY OF SOA - Thomas Erl - Service Oriented Architecture
ANATOMY OF SOA - Thomas Erl - Service Oriented ArchitectureANATOMY OF SOA - Thomas Erl - Service Oriented Architecture
ANATOMY OF SOA - Thomas Erl - Service Oriented Architecture
Divya Rajasekar
 
the potential for the development of autonomous aircraft
the potential for the development of autonomous aircraftthe potential for the development of autonomous aircraft
the potential for the development of autonomous aircraft
huseindihon
 
Girls call Service Ludhiana 000XX00000 Provide Best And Top Girl Service And ...
Girls call Service Ludhiana 000XX00000 Provide Best And Top Girl Service And ...Girls call Service Ludhiana 000XX00000 Provide Best And Top Girl Service And ...
Girls call Service Ludhiana 000XX00000 Provide Best And Top Girl Service And ...
singharadhana4778
 
Red Hat Enterprise Linux Administration 9.0 RH124 pdf
Red Hat Enterprise Linux Administration 9.0 RH124 pdfRed Hat Enterprise Linux Administration 9.0 RH124 pdf
Red Hat Enterprise Linux Administration 9.0 RH124 pdf
mdfkobir
 
ECONOMIC FEASIBILITY AND ENVIRONMENTAL IMPLICATIONS OF PERMEABLE PAVEMENT IN ...
ECONOMIC FEASIBILITY AND ENVIRONMENTAL IMPLICATIONS OF PERMEABLE PAVEMENT IN ...ECONOMIC FEASIBILITY AND ENVIRONMENTAL IMPLICATIONS OF PERMEABLE PAVEMENT IN ...
ECONOMIC FEASIBILITY AND ENVIRONMENTAL IMPLICATIONS OF PERMEABLE PAVEMENT IN ...
Fady M. A Hassouna
 
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagneEAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
idelewebmestre
 
JORC_Review_presentation. 2024 código jorcpdf
JORC_Review_presentation. 2024 código jorcpdfJORC_Review_presentation. 2024 código jorcpdf
JORC_Review_presentation. 2024 código jorcpdf
WilliamsNuezEspetia
 
charting the development of the autonomous train
charting the development of the autonomous traincharting the development of the autonomous train
charting the development of the autonomous train
huseindihon
 
RMC FPV.docx_fpv solar energy panels----
RMC FPV.docx_fpv solar energy panels----RMC FPV.docx_fpv solar energy panels----
RMC FPV.docx_fpv solar energy panels----
Khader Mallah
 
If we're running two pumps, why aren't we getting twice as much flow? v.17
If we're running two pumps, why aren't we getting twice as much flow? v.17If we're running two pumps, why aren't we getting twice as much flow? v.17
If we're running two pumps, why aren't we getting twice as much flow? v.17
Brian Gongol
 

Recently uploaded (20)

20240710 ISSIP GGG Qtrly Community Connection Slides.pptx
20240710 ISSIP GGG Qtrly Community Connection Slides.pptx20240710 ISSIP GGG Qtrly Community Connection Slides.pptx
20240710 ISSIP GGG Qtrly Community Connection Slides.pptx
 
NOVEC 1230 Fire Suppression System Presentation
NOVEC 1230 Fire Suppression System PresentationNOVEC 1230 Fire Suppression System Presentation
NOVEC 1230 Fire Suppression System Presentation
 
Chapter 1 Introduction to Software Engineering and Process Models.pdf
Chapter 1 Introduction to Software Engineering and Process Models.pdfChapter 1 Introduction to Software Engineering and Process Models.pdf
Chapter 1 Introduction to Software Engineering and Process Models.pdf
 
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYSDPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
 
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
 
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
 
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
 
High Profile Girls Call Delhi 9711199171 Provide Best And Top Girl Service An...
High Profile Girls Call Delhi 9711199171 Provide Best And Top Girl Service An...High Profile Girls Call Delhi 9711199171 Provide Best And Top Girl Service An...
High Profile Girls Call Delhi 9711199171 Provide Best And Top Girl Service An...
 
AI INTRODUCTION Artificial intelligence.ppt
AI INTRODUCTION Artificial intelligence.pptAI INTRODUCTION Artificial intelligence.ppt
AI INTRODUCTION Artificial intelligence.ppt
 
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdfLOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
 
ANATOMY OF SOA - Thomas Erl - Service Oriented Architecture
ANATOMY OF SOA - Thomas Erl - Service Oriented ArchitectureANATOMY OF SOA - Thomas Erl - Service Oriented Architecture
ANATOMY OF SOA - Thomas Erl - Service Oriented Architecture
 
the potential for the development of autonomous aircraft
the potential for the development of autonomous aircraftthe potential for the development of autonomous aircraft
the potential for the development of autonomous aircraft
 
Girls call Service Ludhiana 000XX00000 Provide Best And Top Girl Service And ...
Girls call Service Ludhiana 000XX00000 Provide Best And Top Girl Service And ...Girls call Service Ludhiana 000XX00000 Provide Best And Top Girl Service And ...
Girls call Service Ludhiana 000XX00000 Provide Best And Top Girl Service And ...
 
Red Hat Enterprise Linux Administration 9.0 RH124 pdf
Red Hat Enterprise Linux Administration 9.0 RH124 pdfRed Hat Enterprise Linux Administration 9.0 RH124 pdf
Red Hat Enterprise Linux Administration 9.0 RH124 pdf
 
ECONOMIC FEASIBILITY AND ENVIRONMENTAL IMPLICATIONS OF PERMEABLE PAVEMENT IN ...
ECONOMIC FEASIBILITY AND ENVIRONMENTAL IMPLICATIONS OF PERMEABLE PAVEMENT IN ...ECONOMIC FEASIBILITY AND ENVIRONMENTAL IMPLICATIONS OF PERMEABLE PAVEMENT IN ...
ECONOMIC FEASIBILITY AND ENVIRONMENTAL IMPLICATIONS OF PERMEABLE PAVEMENT IN ...
 
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagneEAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
 
JORC_Review_presentation. 2024 código jorcpdf
JORC_Review_presentation. 2024 código jorcpdfJORC_Review_presentation. 2024 código jorcpdf
JORC_Review_presentation. 2024 código jorcpdf
 
charting the development of the autonomous train
charting the development of the autonomous traincharting the development of the autonomous train
charting the development of the autonomous train
 
RMC FPV.docx_fpv solar energy panels----
RMC FPV.docx_fpv solar energy panels----RMC FPV.docx_fpv solar energy panels----
RMC FPV.docx_fpv solar energy panels----
 
If we're running two pumps, why aren't we getting twice as much flow? v.17
If we're running two pumps, why aren't we getting twice as much flow? v.17If we're running two pumps, why aren't we getting twice as much flow? v.17
If we're running two pumps, why aren't we getting twice as much flow? v.17
 

Microkernel

  • 1. Seminar on MICROKERNEL BY TUSHAR.N.TEKADE (ME IT 9114) SCTR’s PUNE INSTITUTE OF COMPUTER TECHNOLOGY, PUNE
  • 2. Computer has 2 modes of operation……. • Kernel Mode • User Mode • The OS is the most fundamental piece of software & runs in kernel mode(supervisor mode). • In this mode, it has complete access to all the h/w and execute any instruction the machine is capable of. • Everything running in Kernel Mode is clearly a part of OS ,but some program running outside it are arguably also part of it or closely associated with it.
  • 3. • Distinction between OS mode and user mode is that if a user does not like a particular e-mail reader , he is free to get different one or write his own. • Whereas he is not free to write his own clock interrupt handler, a part of OS & protected by h/w against attempts by user to modify it. • There are however programs which run in user mode but help the OS or perform privileged functions. Ex. Changing Password program- not part of OS and not runs in kernel mode.
  • 4. SYSTEM STRUCTURE • Design and Implementation of OS not “solvable”, but some approaches have proven successful • Internal structure of different Operating Systems can vary widely • Start by defining goals and specifications • Affected by choice of hardware, type of system • User goals and System goals – User goals – operating system should be convenient to use, easy to learn, reliable, safe, and fast – System goals – operating system should be easy to design, implement, and maintain, as well as flexible, reliable, error-free, and efficient
  • 5. • Approach is to partition the task into small components rather than a monolithic structure. • Each of these modules should be well-defined portions of the system , with proper inputs, outputs and functions. • All the modules (process , main memory, file, i/o system, secondary storage, networking , command-interpreter management ) are interconnected and melded into a kernel.
  • 6. SIMPLE STRUCTURE • MS- DOS an example of such system, originally designed and implemented to provide most functionality in least space(limited h/w). • Not divided in modules • It has some structure but its interfaces and functionalities not well separated.
  • 8. UNIX • OS initially limited by h/w functionality. • 2 separable parts - System Programs - Kernel • Consists of everything below the system-call interface and above the physical hardware • Provides the file system, CPU scheduling, memory management, and other operating-system functions; a large number of functions for one level
  • 10. MONOLITHIC STRUCTURE • In this approach the entire operating system runs as a single program in kernel mode. • The operating system is written as a collection of procedures, linked together into a single large executable binary program. • An unwieldy and difficult to understand system.
  • 12. The main disadvantages of monolithic structures are: The dependencies between system components - a bug in a device driver might crash the entire system. Large kernels can become very difficult to maintain.
  • 13. LAYERED APPROACH • It’s a way of Modularization of system, in which OS is broken into number of layers or levels. • Each built on top of lower layers, bottom layer(layer 0) is the h/w & the highest layer (layer N) is user interface. • OS layer is an implementation of an abstract object that is encapsulation of data & of the operations that manipulate that data. • It contains data structures and routines that can be invoked by higher level layers & it can invoke operations on lower layer.
  • 15. Advantages:  Modularity  Simplifies debugging and system verification.  Ease in error solving.  Each layer hides the existence of certain data structures, operations and h/w from higher layers. Difficulties:  Careful definition of each layer.  They tend to be less efficient than other type(due to overhead added by each layer to system call). THE system built at the Technische Hogeschool Eindhoven in the Netherlands by E. W. Dijkstra (1968) and his students
  • 16. MICROKERNELS • With layered approach the designers have a choice where to draw the kernel-user boundary. • Traditionally all the layers were in the kernel. • In fact, a strong base can be made for putting as little as possible in kernel mode because bugs in kernel can bring down the system instantly. • In contrast user processes can be set up to have less power so that a bug there may not be fatal.
  • 17. • The basic idea behind the microkernel design is to achieve high reliability by splitting the OS up into smaller but well defined modules , only one mode THE MICROKERNEL runs in the kernel mode& the rest run as relatively less power ordinary user processes. • Another function is to provide communication facility between client program and various services running. BENEFITS:  Ease of extending the OS  All new services added to user space, thus no need to modify kernel , and when needed changes are few because microkernel is smaller kernel.
  • 18. BENEFITS:  OS is more easier to port from one h/w design to another.  More security & reliability since most services are running as user rather than kernel processes.  If a service fails the rest of OS remains untouched, which is in contrast with monolithic system.
  • 19. • Tru64 UNIX(formerly Digital UNIX) provides a UNIX interface to the user , uses microkernel , implemented with Mach kernel.(which maps UNIX system calls into messages to appropriate user-level servies.) • The Apple MacOS Server OS is also based on Mach Kernel. • QNX is RTOS based on Microkernel design, providing services for message passing and process scheduling.
  • 20. MINIX 3 • MINIX 3 is a POSIX conformant, open source microkernel system freely available . • It is only about a 3200 lines of C & 800 lines of assembler for very low level functions such as catching interrupts & switching process. • The C code manages & schedules processes, handles inter process communication & offers a set of about 35 kernel calls to allow the rest of OS to do its work. • These calls does: looking handlers for interrupts, moving data between address spaces , installing new memory maps for newly created processes.
  • 22. • Lowest layer in user mode: Device Drivers Do not have physical access to i/o port space & cannot issue i/o command directly. • Above lowest layer : Server All servers like file server which manages file system i.e. create , destroy and manages process. One interesting server is “reincarnation server” which checks if other server & drivers are working properly and if found faulty corrects it…so a self-healing system. • User Program obtain OS services by sending short messages to the servers asking for the POSIX system calls • Each layer has exactly the power do its work and nothing more , limiting the damage a baggy component can do.
  • 24. • Idea of Minimal Kernel is to put the mechanism for doing something in the kernel but not the policy. • Ex. Scheduling Problem Mechanism: look for highest priority process & run it. Policy: assigning priorities to process , can be done by user mode process. Thus policy and mechanism can be decoupled and kernel can be made smaller. “Microkernel (also known as μ-kernel or Samuel kernel) is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system (OS)”