SlideShare a Scribd company logo
1 of 26
Download to read offline
Unit 1- Part 2
Introduction
Kernel
The kernel is a computer program that is the core of a computer's
operating system, with complete control over everything in the
system. The kernel facilitates interactions between hardware and
software components. On most systems, it is one of the first programs
loaded on start-up (after the bootloader). It handles the rest of start-
up as well as input/output requests from software, translating them
into data-processing instructions for the central processing unit. It
handles memory and peripherals like keyboards, monitors, printers,
and speakers.
The critical code of the kernel is usually loaded into a separate area of
memory, which is protected from access by application programs or
other, less critical parts of the operating system. The kernel performs
its tasks, such as running processes, managing hardware devices such
as the hard disk, and handling interrupts, in this protected kernel
space. In contrast, application programs like browsers, word
processors, or audio or video players use a separate area of memory,
user space. This separation prevents user data and kernel data from
interfering with each other and causing instability and slowness, as
well as preventing malfunctioning application programs from crashing
the entire operating system.
The kernel's interface is a low-level abstraction layer.
When a process makes requests of the kernel, it is
called a system call. Kernel designs differ in how they
manage these system calls and resources. A
monolithic kernel runs all the operating system
instructions in the same address space for speed. A
microkernel runs most processes in user space, for
modularity.
This central component of a computer system is
responsible for running or executing programs. The
kernel takes responsibility for deciding at any time
which of the many running programs should be
allocated to the processor or processors.
Four broad categories of kernels:
Monolithic kernels provide rich and powerful
abstractions of the underlying hardware.
Microkernels provide a small set of simple hardware
abstractions and use applications called servers to
provide more functionality.
Exokernels provide minimal abstractions, allowing low-
level hardware access. In exokernel systems, library
operating systems provide the abstractions typically
present in monolithic kernels.
Hybrid (modified microkernels) are much like pure
microkernels, except that they include some additional
code in kernel space to increase performance.
Random-access memory (RAM)
Random-access memory is used to store both program
instructions and data. Typically, both need to be present in
memory in order for a program to execute. Often multiple
programs will want access to memory, frequently
demanding more memory than the computer has
available. The kernel is responsible for deciding which
memory each process can use, and determining what to do
when not enough memory is available.
Input/output (I/O) devices
I/O devices include such peripherals as keyboards, mice,
disk drives, printers, USB devices, network adapters, and
display devices. The kernel allocates requests from
applications to perform I/O to an appropriate device and
provides convenient methods for using the device
Kernel
Computer Startup
• Bootstrap program is loaded at power-up or reboot
• Typically stored in ROM or EPROM,
• Initializes all aspects of the system
• Locate and Load operating system kernel and
starts execution
• Kernel runs and make the system ready for running
applications
• Kernel is always ready to run (always in
memory)
Architecture of Operating System
• Monolithic Operating System
• Layered Operating System
• Microkernel Operating system
• Networked and Distributed Operating System
Monolithic OS
A monolithic OS is an operating system architecture
where the entire operating system is working in
kernel space and is alone in supervisor mode. The
kernel has unrestricted access to all of the resources
on the system. In monolithic systems, each
component of the operating system could
communicate directly with any other component,
and had unrestricted system access. While this made
the operating system very efficient, it also meant
that errors were more difficult to isolate, and there
was a high risk of damage due to erroneous or
malicious code.
Monolithic OS
Layered OS
As operating systems became larger and more complex, this
approach was largely abandoned in favor of a modular approach
which grouped components with similar functionality into layers to
help operating system designers to manage the complexity of the
system. In this kind of architecture, each layer communicates only
with the layers immediately above and below it, and lower-level
layers provide services to higher-level ones using an interface that
hides their implementation.
The modularity of layered operating systems allows the
implementation of each layer to be modified without requiring any
modification to adjacent layers. Although this modular approach
imposes structure and consistency on the operating system,
simplifying debugging and modification, a service request from a
user process may pass through many layers of system software
before it is serviced and performance compares unfavorably to
that of a monolithic kernel. Also, because all layers still have
unrestricted access to the system, the kernel is still susceptible to
errant or malicious code. Many of today’s operating systems,
including Microsoft Windows and Linux, implement some level of
layering.
Layered OS
Microkernel
A microkernel architecture includes only a very small
number of services within the kernel in an attempt to keep
it small and scalable. The services typically include low-
level memory management, inter-process communication
and basic process synchronization to enable processes to
cooperate. In microkernel designs, most operating system
components, such as process management and device
management, execute outside the kernel with a lower level
of system access.
Microkernels are highly modular, making them extensible,
portable and scalable. Operating system components
outside the kernel can fail without causing the operating
system to fall over. Once again, the downside is an
increased level of inter-module communication which can
degrade system performance.
Microkernel
Network Operating System
A network operating system enables its processes to
access resources (e.g., files) that reside on other
independent computers on a network.
The structure of many networked and distributed
operating systems is often based on the client/server
model.
The client computers in such a network request
resources—such as files and processor time—via the
appropriate network protocol. The servers respond with
the appropriate resources.
A distributed operating system is a single operating system
that manages resources on more than one computer
system.
Interrupt
In digital computers, an interrupt is an input signal to the
processor indicating an event that needs immediate attention.
An interrupt signal alerts the processor and serves as a request
for the processor to interrupt the currently executing code, so
that the event can be processed in a timely manner. If the
request is accepted, the processor responds by suspending its
current activities, saving its state, and executing a function
called an interrupt handler (or an interrupt service routine, ISR)
to deal with the event. This interruption is temporary, and,
unless the interrupt indicates a fatal error, the processor
resumes normal activities after the interrupt handler finishes.
Interrupts are commonly used by hardware devices to indicate
electronic or physical state changes that require attention.
Interrupts are also commonly used to implement computer
multitasking, especially in real-time computing. Systems that
use interrupts in these ways are said to be interrupt-driven
Common Functions of
Interrupts
• Interrupt transfers control to the interrupt service
routine generally, through the interrupt vector, which
contains the addresses of all the service routines.
• Interrupt architecture must save the address of the
interrupted instruction.
• Incoming interrupts are disabled while another
interrupt is being processed to prevent a lost interrupt.
• A trap is a software-generated interrupt caused either
by an error or a user request.
• An operating system is interrupt driven.
Interrupt-Driven OS
Kernel Code
Devices
Applications or System Programs running in CPU
hardware interrupt
software interrupt / trap
(due to system service requests or errors)
disk, keyboard, timer, network adapter…
Interrupt Handling
• The operating system preserves the state of the
CPU by storing registers and the program counter.
• Determines which type of interrupt has occurred:
• polling
• vectored interrupt system
• Separate segments of code determine what action
should be taken for each type of interrupt
System Boot
Bootstrap program (loader) locates the kernel, loads it and
starts the kernel. Boot program loads the kernel
Then control is given to kernel.
Kernel starts the environment and makes the computer ready
to interact with the user (via a GUI or command shell).
Details depend on the system
Operating System Services
• For user
• Providing a nice and convenient
environment for user applications.
• User Interface
• Visible to users
• Program execution
• I/O operations
• File-system manipulation
• Communication
• Error detection and handling
• For System:
• Resource allocation and
Management
• Accounting
• Protection and security
• Not much visible to users
There are two major tasks of an operating system.
OS Services
23
[User - Operating System] Interface - CLI
• CLI: Command Line Interface (CLI) or
command interpreter (shell)
• Part of a kernel or as a system
program,
• Fetches a command from user and
executes it
• GUI: User-friendly desktop interface
• Icons represent files, programs,
actions, etc.
System Calls
Programming interface to the services provided by the
OS
i.e., interface provided to applications
Printf, Scanf, Cin, Cout are library routines call some system calls
of an I/O operation
Typically written in a high-level language (C or C++)
Are called by a running program to get services.
Mostly accessed by programs via high level Application
Program Interface (API) rather than direct system call
use.
Even a simple program may make a lot of calls per
second.
Example of System Calls
• System call sequence to copy the contents of one file to
another file

More Related Content

What's hot

What's hot (20)

Kernel (computing)
Kernel (computing)Kernel (computing)
Kernel (computing)
 
Embedded os
Embedded osEmbedded os
Embedded os
 
Operating system
Operating systemOperating system
Operating system
 
Monolithic kernel
Monolithic kernelMonolithic kernel
Monolithic kernel
 
Ch1
Ch1Ch1
Ch1
 
Presentation1 cc
Presentation1 ccPresentation1 cc
Presentation1 cc
 
Chapter01
Chapter01Chapter01
Chapter01
 
Kernel | Operating System
Kernel | Operating SystemKernel | Operating System
Kernel | Operating System
 
MIcrokernel
MIcrokernelMIcrokernel
MIcrokernel
 
02.Os Structure
02.Os Structure02.Os Structure
02.Os Structure
 
Embedded os
Embedded osEmbedded os
Embedded os
 
Different types of kernels
Different types of kernelsDifferent types of kernels
Different types of kernels
 
UNIT II-Programming in Linux
UNIT II-Programming in LinuxUNIT II-Programming in Linux
UNIT II-Programming in Linux
 
1 introduction
1 introduction1 introduction
1 introduction
 
Kernel
KernelKernel
Kernel
 
OPERATING SYSTEM
OPERATING SYSTEM OPERATING SYSTEM
OPERATING SYSTEM
 
Chapter01 os7e
Chapter01 os7eChapter01 os7e
Chapter01 os7e
 
Operating System Overview
Operating System OverviewOperating System Overview
Operating System Overview
 
Distributed Operating System_3
Distributed Operating System_3Distributed Operating System_3
Distributed Operating System_3
 
Csc 2313 (lecture 2)
Csc 2313 (lecture 2)Csc 2313 (lecture 2)
Csc 2313 (lecture 2)
 

Similar to lecture 1 (Part 2) kernal and its categories

Basic operating systems in computer and it's uses
Basic operating systems in computer and it's usesBasic operating systems in computer and it's uses
Basic operating systems in computer and it's usesSurya Vishnuram
 
ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology BasicMayank Garg
 
L-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.pptL-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.pptKirti Verma
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts PresentationNitish Jadia
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsmanideepakc
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - IntroductionWayne Jones Jnr
 
Operating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chaptersOperating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chapterssphs
 
Ch3 OS
Ch3 OSCh3 OS
Ch3 OSC.U
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESsuthi
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESKopinathMURUGESAN
 

Similar to lecture 1 (Part 2) kernal and its categories (20)

Unit 1 q&a
Unit  1 q&aUnit  1 q&a
Unit 1 q&a
 
Operating System 2.pptx
Operating System 2.pptxOperating System 2.pptx
Operating System 2.pptx
 
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 (computing)
Kernel (computing)Kernel (computing)
Kernel (computing)
 
Kernels and its types
Kernels and its typesKernels and its types
Kernels and its types
 
Basic operating systems in computer and it's uses
Basic operating systems in computer and it's usesBasic operating systems in computer and it's uses
Basic operating systems in computer and it's uses
 
ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology Basic
 
OS-ch01-2024.ppt
OS-ch01-2024.pptOS-ch01-2024.ppt
OS-ch01-2024.ppt
 
L-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.pptL-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.ppt
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts Presentation
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system calls
 
Chapter 1 - Introduction
Chapter 1 - IntroductionChapter 1 - Introduction
Chapter 1 - Introduction
 
Operating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chaptersOperating systems. replace ch1 with numbers for next chapters
Operating systems. replace ch1 with numbers for next chapters
 
Ch3 OS
Ch3 OSCh3 OS
Ch3 OS
 
OSCh3
OSCh3OSCh3
OSCh3
 
OS_Ch3
OS_Ch3OS_Ch3
OS_Ch3
 
OPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTESOPERATING SYSTEM - SHORT NOTES
OPERATING SYSTEM - SHORT NOTES
 
Linux Internals - Interview essentials - 1.0
Linux Internals - Interview essentials - 1.0Linux Internals - Interview essentials - 1.0
Linux Internals - Interview essentials - 1.0
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTES
 

More from WajeehaBaig

Unit 3 part 2(DEADLOCK)
Unit 3 part 2(DEADLOCK)Unit 3 part 2(DEADLOCK)
Unit 3 part 2(DEADLOCK)WajeehaBaig
 
Unit 2 part 2(Process)
Unit 2 part 2(Process)Unit 2 part 2(Process)
Unit 2 part 2(Process)WajeehaBaig
 
Unit 2 part 1(Process)
Unit 2 part 1(Process)Unit 2 part 1(Process)
Unit 2 part 1(Process)WajeehaBaig
 
Unit 3 part 1(DEADLOCK)
Unit 3 part 1(DEADLOCK)Unit 3 part 1(DEADLOCK)
Unit 3 part 1(DEADLOCK)WajeehaBaig
 
lecture 1 (Introduction to Operating System.)
lecture 1 (Introduction to Operating System.)lecture 1 (Introduction to Operating System.)
lecture 1 (Introduction to Operating System.)WajeehaBaig
 

More from WajeehaBaig (6)

File system
File systemFile system
File system
 
Unit 3 part 2(DEADLOCK)
Unit 3 part 2(DEADLOCK)Unit 3 part 2(DEADLOCK)
Unit 3 part 2(DEADLOCK)
 
Unit 2 part 2(Process)
Unit 2 part 2(Process)Unit 2 part 2(Process)
Unit 2 part 2(Process)
 
Unit 2 part 1(Process)
Unit 2 part 1(Process)Unit 2 part 1(Process)
Unit 2 part 1(Process)
 
Unit 3 part 1(DEADLOCK)
Unit 3 part 1(DEADLOCK)Unit 3 part 1(DEADLOCK)
Unit 3 part 1(DEADLOCK)
 
lecture 1 (Introduction to Operating System.)
lecture 1 (Introduction to Operating System.)lecture 1 (Introduction to Operating System.)
lecture 1 (Introduction to Operating System.)
 

Recently uploaded

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 

lecture 1 (Part 2) kernal and its categories

  • 1. Unit 1- Part 2 Introduction
  • 2. Kernel The kernel is a computer program that is the core of a computer's operating system, with complete control over everything in the system. The kernel facilitates interactions between hardware and software components. On most systems, it is one of the first programs loaded on start-up (after the bootloader). It handles the rest of start- up as well as input/output requests from software, translating them into data-processing instructions for the central processing unit. It handles memory and peripherals like keyboards, monitors, printers, and speakers. The critical code of the kernel is usually loaded into a separate area of memory, which is protected from access by application programs or other, less critical parts of the operating system. The kernel performs its tasks, such as running processes, managing hardware devices such as the hard disk, and handling interrupts, in this protected kernel space. In contrast, application programs like browsers, word processors, or audio or video players use a separate area of memory, user space. This separation prevents user data and kernel data from interfering with each other and causing instability and slowness, as well as preventing malfunctioning application programs from crashing the entire operating system.
  • 3. The kernel's interface is a low-level abstraction layer. When a process makes requests of the kernel, it is called a system call. Kernel designs differ in how they manage these system calls and resources. A monolithic kernel runs all the operating system instructions in the same address space for speed. A microkernel runs most processes in user space, for modularity. This central component of a computer system is responsible for running or executing programs. The kernel takes responsibility for deciding at any time which of the many running programs should be allocated to the processor or processors.
  • 4. Four broad categories of kernels: Monolithic kernels provide rich and powerful abstractions of the underlying hardware. Microkernels provide a small set of simple hardware abstractions and use applications called servers to provide more functionality. Exokernels provide minimal abstractions, allowing low- level hardware access. In exokernel systems, library operating systems provide the abstractions typically present in monolithic kernels. Hybrid (modified microkernels) are much like pure microkernels, except that they include some additional code in kernel space to increase performance.
  • 5. Random-access memory (RAM) Random-access memory is used to store both program instructions and data. Typically, both need to be present in memory in order for a program to execute. Often multiple programs will want access to memory, frequently demanding more memory than the computer has available. The kernel is responsible for deciding which memory each process can use, and determining what to do when not enough memory is available. Input/output (I/O) devices I/O devices include such peripherals as keyboards, mice, disk drives, printers, USB devices, network adapters, and display devices. The kernel allocates requests from applications to perform I/O to an appropriate device and provides convenient methods for using the device
  • 7. Computer Startup • Bootstrap program is loaded at power-up or reboot • Typically stored in ROM or EPROM, • Initializes all aspects of the system • Locate and Load operating system kernel and starts execution • Kernel runs and make the system ready for running applications • Kernel is always ready to run (always in memory)
  • 8. Architecture of Operating System • Monolithic Operating System • Layered Operating System • Microkernel Operating system • Networked and Distributed Operating System
  • 9. Monolithic OS A monolithic OS is an operating system architecture where the entire operating system is working in kernel space and is alone in supervisor mode. The kernel has unrestricted access to all of the resources on the system. In monolithic systems, each component of the operating system could communicate directly with any other component, and had unrestricted system access. While this made the operating system very efficient, it also meant that errors were more difficult to isolate, and there was a high risk of damage due to erroneous or malicious code.
  • 11. Layered OS As operating systems became larger and more complex, this approach was largely abandoned in favor of a modular approach which grouped components with similar functionality into layers to help operating system designers to manage the complexity of the system. In this kind of architecture, each layer communicates only with the layers immediately above and below it, and lower-level layers provide services to higher-level ones using an interface that hides their implementation. The modularity of layered operating systems allows the implementation of each layer to be modified without requiring any modification to adjacent layers. Although this modular approach imposes structure and consistency on the operating system, simplifying debugging and modification, a service request from a user process may pass through many layers of system software before it is serviced and performance compares unfavorably to that of a monolithic kernel. Also, because all layers still have unrestricted access to the system, the kernel is still susceptible to errant or malicious code. Many of today’s operating systems, including Microsoft Windows and Linux, implement some level of layering.
  • 13. Microkernel A microkernel architecture includes only a very small number of services within the kernel in an attempt to keep it small and scalable. The services typically include low- level memory management, inter-process communication and basic process synchronization to enable processes to cooperate. In microkernel designs, most operating system components, such as process management and device management, execute outside the kernel with a lower level of system access. Microkernels are highly modular, making them extensible, portable and scalable. Operating system components outside the kernel can fail without causing the operating system to fall over. Once again, the downside is an increased level of inter-module communication which can degrade system performance.
  • 15. Network Operating System A network operating system enables its processes to access resources (e.g., files) that reside on other independent computers on a network. The structure of many networked and distributed operating systems is often based on the client/server model. The client computers in such a network request resources—such as files and processor time—via the appropriate network protocol. The servers respond with the appropriate resources. A distributed operating system is a single operating system that manages resources on more than one computer system.
  • 16. Interrupt In digital computers, an interrupt is an input signal to the processor indicating an event that needs immediate attention. An interrupt signal alerts the processor and serves as a request for the processor to interrupt the currently executing code, so that the event can be processed in a timely manner. If the request is accepted, the processor responds by suspending its current activities, saving its state, and executing a function called an interrupt handler (or an interrupt service routine, ISR) to deal with the event. This interruption is temporary, and, unless the interrupt indicates a fatal error, the processor resumes normal activities after the interrupt handler finishes. Interrupts are commonly used by hardware devices to indicate electronic or physical state changes that require attention. Interrupts are also commonly used to implement computer multitasking, especially in real-time computing. Systems that use interrupts in these ways are said to be interrupt-driven
  • 17.
  • 18. Common Functions of Interrupts • Interrupt transfers control to the interrupt service routine generally, through the interrupt vector, which contains the addresses of all the service routines. • Interrupt architecture must save the address of the interrupted instruction. • Incoming interrupts are disabled while another interrupt is being processed to prevent a lost interrupt. • A trap is a software-generated interrupt caused either by an error or a user request. • An operating system is interrupt driven.
  • 19. Interrupt-Driven OS Kernel Code Devices Applications or System Programs running in CPU hardware interrupt software interrupt / trap (due to system service requests or errors) disk, keyboard, timer, network adapter…
  • 20. Interrupt Handling • The operating system preserves the state of the CPU by storing registers and the program counter. • Determines which type of interrupt has occurred: • polling • vectored interrupt system • Separate segments of code determine what action should be taken for each type of interrupt
  • 21. System Boot Bootstrap program (loader) locates the kernel, loads it and starts the kernel. Boot program loads the kernel Then control is given to kernel. Kernel starts the environment and makes the computer ready to interact with the user (via a GUI or command shell). Details depend on the system
  • 22. Operating System Services • For user • Providing a nice and convenient environment for user applications. • User Interface • Visible to users • Program execution • I/O operations • File-system manipulation • Communication • Error detection and handling • For System: • Resource allocation and Management • Accounting • Protection and security • Not much visible to users There are two major tasks of an operating system.
  • 24. [User - Operating System] Interface - CLI • CLI: Command Line Interface (CLI) or command interpreter (shell) • Part of a kernel or as a system program, • Fetches a command from user and executes it • GUI: User-friendly desktop interface • Icons represent files, programs, actions, etc.
  • 25. System Calls Programming interface to the services provided by the OS i.e., interface provided to applications Printf, Scanf, Cin, Cout are library routines call some system calls of an I/O operation Typically written in a high-level language (C or C++) Are called by a running program to get services. Mostly accessed by programs via high level Application Program Interface (API) rather than direct system call use. Even a simple program may make a lot of calls per second.
  • 26. Example of System Calls • System call sequence to copy the contents of one file to another file