SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

Intro (Distributed computing)
Intro (Distributed computing)Intro (Distributed computing)
Intro (Distributed computing)
Sri Prasanna
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
sumitjain2013
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
Piyush Rochwani
 

La actualidad más candente (20)

Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systems
 
Microkernel
MicrokernelMicrokernel
Microkernel
 
Monolithic kernel
Monolithic kernelMonolithic kernel
Monolithic kernel
 
Introduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed ComputingIntroduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed Computing
 
Cache coherence ppt
Cache coherence pptCache coherence ppt
Cache coherence ppt
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
Multithreading
MultithreadingMultithreading
Multithreading
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
 
Intro (Distributed computing)
Intro (Distributed computing)Intro (Distributed computing)
Intro (Distributed computing)
 
Chap 4
Chap 4Chap 4
Chap 4
 
Structure of operating system
Structure of operating systemStructure of operating system
Structure of operating system
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
Kernels and its types
Kernels and its typesKernels and its types
Kernels and its types
 
Introduction to Virtualization
Introduction to VirtualizationIntroduction to Virtualization
Introduction to Virtualization
 
Processes and Processors in Distributed Systems
Processes and Processors in Distributed SystemsProcesses and Processors in Distributed Systems
Processes and Processors in Distributed Systems
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
Memory consistency models
Memory consistency modelsMemory consistency models
Memory consistency models
 
Parallel computing
Parallel computingParallel computing
Parallel computing
 

Similar a 2. microkernel new

Similar a 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
 
Microkernel
MicrokernelMicrokernel
Microkernel
 
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
 
Kernel Module Programming
Kernel Module ProgrammingKernel Module Programming
Kernel Module Programming
 
Os file
Os fileOs file
Os file
 
Unix operating system
Unix operating systemUnix operating system
Unix operating system
 

Más de AbDul ThaYyal

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

Más de 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