SlideShare a Scribd company logo
1 of 21
Operating System Support 
Including 
1.Introduction 
2.The OS layer 
3.Protection 
4.Processes & Threads 
5.Operating System Architecture
Operating System Architecture
Definition of Kernel 
• The fundamental part of an operating system. 
• Responsible for providing secure access to the 
machine's hardware for various programs. 
• Responsible for deciding when and how long a 
program can use a certain hardware.
Hardware must provide at least two 
execution levels: 
• Kernel mode In this mode, the software has 
access to all the instructions and every piece 
of hardware. 
• User mode In this mode, the software is 
restricted and cannot execute some 
instructions, and is denied access to some 
hardware.
Types of Kernels 
1. Monolithic Kernels 
2. Micro kernels 
3. Hybrid Kernels 
4. NanoKernels 
5. Exokernels
Monolithic Kernels 
• All OS services operate in kernel space 
• Good performance 
• Execute all of their code in the same address 
space (kernel space) 
• Rich and powerful hardware access 
• Monolithic Kernel : Kernel Image = (Kernel 
Core+Kernel Services). When system boots up 
entire services are loaded and resides in 
memory. 
• Example: Windows and Unix.
1. Monolithic Kernels
Disadvantages 
 Disadvantages 
 The dependencies between system components 
 A bug in a driver might crash the entire system 
 Large kernels → very difficult to maintain 
• E.g. Unix, Linux
Microkernels 
• Minimalist approach 
– IPC, virtual memory, thread scheduling 
• Put the rest into user space 
– Device drivers, networking, file system, user interface 
• Run most of their services in user space 
→improve maintainability and modularity 
• Micro kernel : Kernel Image = Kernel Core. Services are 
build into special modules which can be loaded and 
unloaded as per need.
Microkernel
• Disadvantages 
– Lot of system calls and context switches 
• E.g. Mach, L4, AmigaOS, K42
Operating System Architecture 
Monolithic Kernel Microkernel 
S4 
Server: Dynamically loaded Kernel code and data: server program: 
17 
....... 
....... 
Key: 
S1 ....... 
S1 S2 S3 
S2 S3 S4 
Figure 5. Monolithic kernel and microkernel 
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
Summary: Kernels 
• Monolithic kernels 
– Advantages: performance 
– Disadvantages: difficult to debug and maintain 
• Microkernels 
– Advantages: more reliable and secure 
– Disadvantages: more overhead 
• Hybrid Kernels 
– Advantages: benefits of monolithic and microkernels 
– Disadvantages: same as monolithic kernels 
• Nano kernel & Exo kernels 
– Advantages: minimal and simple 
– Disadvantages: more work for application developers
Thank You

More Related Content

What's hot

Multi core-architecture
Multi core-architectureMulti core-architecture
Multi core-architecturePiyush Mittal
 
Monolithic kernel vs. Microkernel
Monolithic kernel vs. MicrokernelMonolithic kernel vs. Microkernel
Monolithic kernel vs. MicrokernelRQK Khan
 
Operating Systems - "Chapter 4: Multithreaded Programming"
Operating Systems - "Chapter 4:  Multithreaded Programming"Operating Systems - "Chapter 4:  Multithreaded Programming"
Operating Systems - "Chapter 4: Multithreaded Programming"Ra'Fat Al-Msie'deen
 
Process and Threads in Linux - PPT
Process and Threads in Linux - PPTProcess and Threads in Linux - PPT
Process and Threads in Linux - PPTQUONTRASOLUTIONS
 
Multicore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash PrajapatiMulticore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash PrajapatiAnkit Raj
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-SystemsVenkata Sreeram
 
6 multiprogramming & time sharing
6 multiprogramming & time sharing6 multiprogramming & time sharing
6 multiprogramming & time sharingmyrajendra
 
Kernel Module Programming
Kernel Module ProgrammingKernel Module Programming
Kernel Module ProgrammingSaurabh Bangad
 
Linux kernel modules
Linux kernel modulesLinux kernel modules
Linux kernel modulesEddy Reyes
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system modelHarshad Umredkar
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)Prakhar Maurya
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory managementrprajat007
 
What is Kernel, basic idea of kernel
What is Kernel, basic idea of kernelWhat is Kernel, basic idea of kernel
What is Kernel, basic idea of kernelNeel Parikh
 
Multi threaded programming
Multi threaded programmingMulti threaded programming
Multi threaded programmingAnyapuPranav
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentationusmankiyani1
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSvampugani
 

What's hot (20)

Multi core-architecture
Multi core-architectureMulti core-architecture
Multi core-architecture
 
Monolithic kernel vs. Microkernel
Monolithic kernel vs. MicrokernelMonolithic kernel vs. Microkernel
Monolithic kernel vs. Microkernel
 
Operating Systems - "Chapter 4: Multithreaded Programming"
Operating Systems - "Chapter 4:  Multithreaded Programming"Operating Systems - "Chapter 4:  Multithreaded Programming"
Operating Systems - "Chapter 4: Multithreaded Programming"
 
Process and Threads in Linux - PPT
Process and Threads in Linux - PPTProcess and Threads in Linux - PPT
Process and Threads in Linux - PPT
 
Multicore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash PrajapatiMulticore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash Prajapati
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-Systems
 
6 multiprogramming & time sharing
6 multiprogramming & time sharing6 multiprogramming & time sharing
6 multiprogramming & time sharing
 
Kernel Module Programming
Kernel Module ProgrammingKernel Module Programming
Kernel Module Programming
 
Linux kernel modules
Linux kernel modulesLinux kernel modules
Linux kernel modules
 
System calls
System callsSystem calls
System calls
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system model
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
What is Kernel, basic idea of kernel
What is Kernel, basic idea of kernelWhat is Kernel, basic idea of kernel
What is Kernel, basic idea of kernel
 
Threads .ppt
Threads .pptThreads .ppt
Threads .ppt
 
Multi threaded programming
Multi threaded programmingMulti threaded programming
Multi threaded programming
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 

Similar to 2. microkernel new

Operating system components
Operating system componentsOperating system components
Operating system componentsSyed Zaid Irshad
 
_Kernel and Kernel Architectures.ppt
_Kernel and Kernel Architectures.ppt_Kernel and Kernel Architectures.ppt
_Kernel and Kernel Architectures.pptHardeepKaurCSEAssist
 
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
 
Embedded Operating System-Kernel Features.pptx
Embedded Operating System-Kernel Features.pptxEmbedded Operating System-Kernel Features.pptx
Embedded Operating System-Kernel Features.pptxssuseradc877
 
F9: A Secure and Efficient Microkernel Built for Deeply Embedded Systems
F9: A Secure and Efficient Microkernel Built for Deeply Embedded SystemsF9: A Secure and Efficient Microkernel Built for Deeply Embedded Systems
F9: A Secure and Efficient Microkernel Built for Deeply Embedded SystemsNational Cheng Kung University
 
Operating system lect3 Autosaved.pptx
Operating system lect3 Autosaved.pptxOperating system lect3 Autosaved.pptx
Operating system lect3 Autosaved.pptxAryanGour1
 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating SystemFatima Qayyum
 
Operating System Structure Part-II.pdf
Operating System Structure Part-II.pdfOperating System Structure Part-II.pdf
Operating System Structure Part-II.pdfHarika Pudugosula
 
Linux for embedded_systems
Linux for embedded_systemsLinux for embedded_systems
Linux for embedded_systemsVandana Salve
 
Device Drivers and Running Modules
Device Drivers and Running ModulesDevice Drivers and Running Modules
Device Drivers and Running ModulesYourHelper1
 
Unix operating system
Unix operating systemUnix operating system
Unix operating systemABhay Panchal
 
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.pdfaayutiwari2003
 

Similar to 2. microkernel new (20)

Microkernels
MicrokernelsMicrokernels
Microkernels
 
Operating system components
Operating system componentsOperating system components
Operating system components
 
_Kernel and Kernel Architectures.ppt
_Kernel and Kernel Architectures.ppt_Kernel and Kernel Architectures.ppt
_Kernel and Kernel Architectures.ppt
 
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
 
Embedded Operating System-Kernel Features.pptx
Embedded Operating System-Kernel Features.pptxEmbedded Operating System-Kernel Features.pptx
Embedded Operating System-Kernel Features.pptx
 
F9: A Secure and Efficient Microkernel Built for Deeply Embedded Systems
F9: A Secure and Efficient Microkernel Built for Deeply Embedded SystemsF9: A Secure and Efficient Microkernel Built for Deeply Embedded Systems
F9: A Secure and Efficient Microkernel Built for Deeply Embedded Systems
 
L4 Microkernel :: Design Overview
L4 Microkernel :: Design OverviewL4 Microkernel :: Design Overview
L4 Microkernel :: Design Overview
 
Kernal assignment
Kernal assignmentKernal assignment
Kernal assignment
 
Operating system lect3 Autosaved.pptx
Operating system lect3 Autosaved.pptxOperating system lect3 Autosaved.pptx
Operating system lect3 Autosaved.pptx
 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating System
 
Operating System Structure Part-II.pdf
Operating System Structure Part-II.pdfOperating System Structure Part-II.pdf
Operating System Structure Part-II.pdf
 
Linux for embedded_systems
Linux for embedded_systemsLinux for embedded_systems
Linux for embedded_systems
 
4 threads
4 threads4 threads
4 threads
 
Device Drivers and Running Modules
Device Drivers and Running ModulesDevice Drivers and Running Modules
Device Drivers and Running Modules
 
The Linux System
The Linux SystemThe Linux System
The Linux System
 
Unix Operaring System
Unix Operaring SystemUnix Operaring System
Unix Operaring System
 
Os file
Os fileOs file
Os file
 
Unix operating system
Unix operating systemUnix operating system
Unix operating system
 
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
 
Construct an Efficient and Secure Microkernel for IoT
Construct an Efficient and Secure Microkernel for IoTConstruct an Efficient and Secure Microkernel for IoT
Construct an Efficient and Secure Microkernel for IoT
 

More from AbDul ThaYyal

Chapter 15 distributed mm systems
Chapter 15 distributed mm systemsChapter 15 distributed mm systems
Chapter 15 distributed mm systemsAbDul ThaYyal
 
Chapter 14 replication
Chapter 14 replicationChapter 14 replication
Chapter 14 replicationAbDul ThaYyal
 
Chapter 12 transactions and concurrency control
Chapter 12 transactions and concurrency controlChapter 12 transactions and concurrency control
Chapter 12 transactions and concurrency controlAbDul ThaYyal
 
Chapter 11d coordination agreement
Chapter 11d coordination agreementChapter 11d coordination agreement
Chapter 11d coordination agreementAbDul ThaYyal
 
Chapter 11c coordination agreement
Chapter 11c coordination agreementChapter 11c coordination agreement
Chapter 11c coordination agreementAbDul ThaYyal
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systemsAbDul ThaYyal
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communicationAbDul ThaYyal
 
Chapter 3 networking and internetworking
Chapter 3 networking and internetworkingChapter 3 networking and internetworking
Chapter 3 networking and internetworkingAbDul ThaYyal
 
Chapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systemsChapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systemsAbDul ThaYyal
 
Chapter 2 system models
Chapter 2 system modelsChapter 2 system models
Chapter 2 system modelsAbDul ThaYyal
 
4.file service architecture
4.file service architecture4.file service architecture
4.file service architectureAbDul ThaYyal
 

More from AbDul ThaYyal (20)

Chapter 17 corba
Chapter 17 corbaChapter 17 corba
Chapter 17 corba
 
Chapter 15 distributed mm systems
Chapter 15 distributed mm systemsChapter 15 distributed mm systems
Chapter 15 distributed mm systems
 
Chapter 14 replication
Chapter 14 replicationChapter 14 replication
Chapter 14 replication
 
Chapter 13
Chapter 13Chapter 13
Chapter 13
 
Chapter 12 transactions and concurrency control
Chapter 12 transactions and concurrency controlChapter 12 transactions and concurrency control
Chapter 12 transactions and concurrency control
 
Chapter 11d coordination agreement
Chapter 11d coordination agreementChapter 11d coordination agreement
Chapter 11d coordination agreement
 
Chapter 11c coordination agreement
Chapter 11c coordination agreementChapter 11c coordination agreement
Chapter 11c coordination agreement
 
Chapter 11b
Chapter 11bChapter 11b
Chapter 11b
 
Chapter 11
Chapter 11Chapter 11
Chapter 11
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Chapter 9 names
Chapter 9 namesChapter 9 names
Chapter 9 names
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systems
 
Chapter 7 security
Chapter 7 securityChapter 7 security
Chapter 7 security
 
Chapter 6 os
Chapter 6 osChapter 6 os
Chapter 6 os
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communication
 
Chapter 3 networking and internetworking
Chapter 3 networking and internetworkingChapter 3 networking and internetworking
Chapter 3 networking and internetworking
 
Chapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systemsChapter 1 characterisation of distributed systems
Chapter 1 characterisation of distributed systems
 
Chapter 2 system models
Chapter 2 system modelsChapter 2 system models
Chapter 2 system models
 
4.file service architecture
4.file service architecture4.file service architecture
4.file service architecture
 

2. microkernel new

  • 1. Operating System Support Including 1.Introduction 2.The OS layer 3.Protection 4.Processes & Threads 5.Operating System Architecture
  • 3. Definition of Kernel • The fundamental part of an operating system. • Responsible for providing secure access to the machine's hardware for various programs. • Responsible for deciding when and how long a program can use a certain hardware.
  • 4.
  • 5.
  • 6. Hardware must provide at least two execution levels: • Kernel mode In this mode, the software has access to all the instructions and every piece of hardware. • User mode In this mode, the software is restricted and cannot execute some instructions, and is denied access to some hardware.
  • 7. Types of Kernels 1. Monolithic Kernels 2. Micro kernels 3. Hybrid Kernels 4. NanoKernels 5. Exokernels
  • 8.
  • 9. Monolithic Kernels • All OS services operate in kernel space • Good performance • Execute all of their code in the same address space (kernel space) • Rich and powerful hardware access • Monolithic Kernel : Kernel Image = (Kernel Core+Kernel Services). When system boots up entire services are loaded and resides in memory. • Example: Windows and Unix.
  • 11. Disadvantages  Disadvantages  The dependencies between system components  A bug in a driver might crash the entire system  Large kernels → very difficult to maintain • E.g. Unix, Linux
  • 12.
  • 13. Microkernels • Minimalist approach – IPC, virtual memory, thread scheduling • Put the rest into user space – Device drivers, networking, file system, user interface • Run most of their services in user space →improve maintainability and modularity • Micro kernel : Kernel Image = Kernel Core. Services are build into special modules which can be loaded and unloaded as per need.
  • 15. • Disadvantages – Lot of system calls and context switches • E.g. Mach, L4, AmigaOS, K42
  • 16.
  • 17. Operating System Architecture Monolithic Kernel Microkernel S4 Server: Dynamically loaded Kernel code and data: server program: 17 ....... ....... Key: S1 ....... S1 S2 S3 S2 S3 S4 Figure 5. Monolithic kernel and microkernel Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
  • 18.
  • 19.
  • 20. Summary: Kernels • Monolithic kernels – Advantages: performance – Disadvantages: difficult to debug and maintain • Microkernels – Advantages: more reliable and secure – Disadvantages: more overhead • Hybrid Kernels – Advantages: benefits of monolithic and microkernels – Disadvantages: same as monolithic kernels • Nano kernel & Exo kernels – Advantages: minimal and simple – Disadvantages: more work for application developers