SlideShare a Scribd company logo
Operating Systems
HIMANSHU PANT
What
 Broker between user and computer hardware. Manages computer hardware.
 Ubiquitous for all computing environments – be it PC , mainframes , IoT devices , smart devices,
cloud computing devices etc.
 Resource allocator – Acts as manage of a computing system’s resources . Does prioritization of
resource requests to resolve conflicts.
 Control program – manages the execution of user programs to prevent errors.
 The single program which is running at all times in a computing environment.
 All code runs on top of OS so knowledge of OS is crucial and important to secure, efficient,
effective programming.
Fitment of OS
Types of computer system architecture
 Single processor architecture(SPA)
 One CPU , single processing core
 Have other special purpose processors which are device specific.
 Multi-processor architecture(MPA)
 Two or more processors with single/multiple core CPU
 Benefit increased throughput , though not a linear increase compared to SPA
Modes of operation
 Typically two modes of operation in computing system – user mode and kernel mode.
 Mode bit in H/W of computer indicates the current mode of operation.
 User mode used for common user operations.
 Kernel mode is for privileged instructions.
 Protects OS from malicious users by classifying some instructions as privileged instruction.
 Systems with virtualization have different mode for showing when virtual machine manager is in control.
 Privileges more than user but less than kernel mode
 Used to create and manage VMs without interfering with kernel of host machine.
OS as Resource Manager
 Process manager –
 Process – an active instance of a passive entity called program. A unit of work in a system.
 OS responsible for –
 Creating and deleting user/kernel processes.
 Scheduling processes
 Suspending and resuming processes
 Process synchronization and communication
 Memory Manager
 Keeps track of memory usage
 Allocating and freeing memory
OS as Resource Manager
 Cache manager
 OS doesn’t deal with hardware based cache.
 Replacement policy for cache management.
 I/O system manager
 Abstract complexity of hardware I/O from user via device driver communiction.
OS as Resource Manager
 File system manager
 File system a logical abstraction of physical properties of storage.
 Manages CRUD operations on file
 Controls user access rights
 File organization – directories and sub-directories
 Mass Storage management – Device management for secondary storage
Virtualization
 Allows abstraction of hardware of single physical computer into multiple distinct execution
environment.
 User of VM see various running OSes like different applications in single processor system.
 OS running as application within other application.
 Emulation – Simulating hardware via software used when different CPU has to simulated. High
performance cost.
 Virtual Machine Manager ( VMM) runs on top of host OS and controls the guest OS
Interacting with OS
 Multiple ways in which users can interact with OS
 CLI ( Command line Interface) – Special program that is running when user first logs in. Systems can
have multiple interpreters like Bourne , Korn etc. Typically preferred by power users as it makes their
activity easily repeatable and loggable.
 GUI ( Graphical user interface) – User friendly graphical interface ( windows , mouse) is used to interact
with OS.
 Touchscreen interface – Typically used in modern portable devices like mobiles , tablets etc.
Process
 Program in execution
 Made up of following sections
 Text section – Executable code of process
 Data Section – Global data
 Heap section – Dynamically allocated memory
 Stack section – Memory keeping track of run time stats
 Program != Process . Program is static/passive entity , process active entity
 Multiple process running same program considered separate.
Process
 States of a process –
 New – Process being created
 Running – Process being executed
 Waiting – Process waiting for some input
 Ready - Process ready to be assigned to some processor.
 Terminated – Process finished execution.
 Number of processes which can run at a time == Number of processors (cores)
Operations on Process
 Process can be created by other process ( parent process).
 Process identified by a numeric identifier called PID.
 Process is terminated when finishes executing its final statement.
Process Communication
 Concurrently operating processes can be –
 Independent – Having no data sharing between each other
 Cooperating – Having data sharing between them
 Inter process communication done via –
 Shared Memory – Faster than message passing
 Message passing – Useful for small amounts of data, preferable for distributed system
 Communication can be of two logical kinds -
 Direct – Each process must know name of sender or receiver.
 Indirect – Process communication done via ports.
Thread
 Basic unit of CPU utilization.
 Finer unit of processing than process.
 Threads (of same process) run in shared memory space.
 Less resource intensive way to do multiple instances of processing.
Benefits of multi-threading
 Increased Responsiveness – Similar to pseudo conversational concept of OLTPs
 Allows Resource sharing – Allow default sharing of memory of the process to which they
belong
 Economical in resource usage – Share resources of the overarching process so economical to create.
 Scalability
Concurrency vs Parallelism
 Concurrency – Running multiple tasks in quick succession to give the illusion of mult—processing.
 Parallelism – Multiple tasks actually running at a single point of time in parallel.
Types of Parallelism
 Data Parallelism – Data spread across multiple cores to facilitate fast processing.
 Task Parallelism – Tasks spready across multiple cores.
Not mutually exclusive , most common usage is hybrid of both
CPU Scheduling

More Related Content

What's hot

Operating system
Operating systemOperating system
Operating system
Tanvirul Islam
 
2 operating system structures
2 operating system structures2 operating system structures
2 operating system structures
Dr. Loganathan R
 
Os Linux
Os LinuxOs Linux
Operating system ppt
Operating system pptOperating system ppt
Operating system
Operating systemOperating system
Operating system
Madhu Bala
 
Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its ComponentsMahmuda Rahman
 
Operating system Tutorial.
Operating system Tutorial.Operating system Tutorial.
Operating system Tutorial.
Deepak Prasad India
 
Operating Systems Presentation
Operating Systems Presentation Operating Systems Presentation
Operating Systems Presentation
Mayank Thanki
 
Operating System
Operating SystemOperating System
Operating System
ushabarad142
 
Operating system presentation
Operating system presentationOperating system presentation
Operating system presentation
Sonu Vishwakarma
 
OS Components and Structure
OS Components and StructureOS Components and Structure
OS Components and Structure
sathish sak
 
Os organization
Os organizationOs organization
Os organizationMohd Arif
 
Operating System- Services,types.Batch files and DOS history
Operating System- Services,types.Batch files and DOS historyOperating System- Services,types.Batch files and DOS history
Operating System- Services,types.Batch files and DOS history
SURBHI SAROHA
 
2 opreating system
2 opreating system2 opreating system
2 opreating system
HekmatFaisal
 
CHAPTER READING TASK OPERATING SYSTEM
CHAPTER READING TASK OPERATING SYSTEMCHAPTER READING TASK OPERATING SYSTEM
CHAPTER READING TASK OPERATING SYSTEMNur Atiqah Mohd Rosli
 
Internal representation of file chapter 4 Sowmya Jyothi
Internal representation of file chapter 4 Sowmya JyothiInternal representation of file chapter 4 Sowmya Jyothi
Internal representation of file chapter 4 Sowmya Jyothi
Sowmya Jyothi
 
Operating system components
Operating system componentsOperating system components
Operating system components
Syed Zaid Irshad
 
Services provided by os
Services provided by osServices provided by os
Services provided by osSumant Diwakar
 
OS Structure
OS StructureOS Structure
OS Structure
Ajay Singh Rana
 

What's hot (20)

Operating system
Operating systemOperating system
Operating system
 
2 operating system structures
2 operating system structures2 operating system structures
2 operating system structures
 
Os Linux
Os LinuxOs Linux
Os Linux
 
Operating system ppt
Operating system pptOperating system ppt
Operating system ppt
 
Operating system
Operating systemOperating system
Operating system
 
Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its Components
 
Operating systems1[1]
Operating systems1[1]Operating systems1[1]
Operating systems1[1]
 
Operating system Tutorial.
Operating system Tutorial.Operating system Tutorial.
Operating system Tutorial.
 
Operating Systems Presentation
Operating Systems Presentation Operating Systems Presentation
Operating Systems Presentation
 
Operating System
Operating SystemOperating System
Operating System
 
Operating system presentation
Operating system presentationOperating system presentation
Operating system presentation
 
OS Components and Structure
OS Components and StructureOS Components and Structure
OS Components and Structure
 
Os organization
Os organizationOs organization
Os organization
 
Operating System- Services,types.Batch files and DOS history
Operating System- Services,types.Batch files and DOS historyOperating System- Services,types.Batch files and DOS history
Operating System- Services,types.Batch files and DOS history
 
2 opreating system
2 opreating system2 opreating system
2 opreating system
 
CHAPTER READING TASK OPERATING SYSTEM
CHAPTER READING TASK OPERATING SYSTEMCHAPTER READING TASK OPERATING SYSTEM
CHAPTER READING TASK OPERATING SYSTEM
 
Internal representation of file chapter 4 Sowmya Jyothi
Internal representation of file chapter 4 Sowmya JyothiInternal representation of file chapter 4 Sowmya Jyothi
Internal representation of file chapter 4 Sowmya Jyothi
 
Operating system components
Operating system componentsOperating system components
Operating system components
 
Services provided by os
Services provided by osServices provided by os
Services provided by os
 
OS Structure
OS StructureOS Structure
OS Structure
 

Similar to Operating system v1 d1

Ch3 OS
Ch3 OSCh3 OS
Ch3 OSC.U
 
Ch1 OS
Ch1 OSCh1 OS
Ch1 OSC.U
 
Basics of Operating System
Basics of Operating SystemBasics of Operating System
Basics of Operating System
Soumit Ghosh
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
np_manjunath
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
Akhilesh Jain
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
Jitendrakumar Upadhyay
 
Unit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptxUnit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptx
ThamaraiselviAvinuty
 
Fundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxFundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptx
Uttara University
 
Operating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionOperating system || Chapter 1: Introduction
Operating system || Chapter 1: Introduction
AnkonGopalBanik
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course Introduction
ArnoyKhan
 
ITM(2).ppt
ITM(2).pptITM(2).ppt
ITM(2).ppt
DimpyJindal4
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTES
KopinathMURUGESAN
 
Unit 1 q&a
Unit  1 q&aUnit  1 q&a
OS UNIT1.pptx
OS UNIT1.pptxOS UNIT1.pptx
OS UNIT1.pptx
DHANABALSUBRAMANIAN
 

Similar to Operating system v1 d1 (20)

Operating system
Operating systemOperating system
Operating system
 
Ch3 OS
Ch3 OSCh3 OS
Ch3 OS
 
OS_Ch3
OS_Ch3OS_Ch3
OS_Ch3
 
OSCh3
OSCh3OSCh3
OSCh3
 
Ch1 OS
Ch1 OSCh1 OS
Ch1 OS
 
OS_Ch1
OS_Ch1OS_Ch1
OS_Ch1
 
OSCh1
OSCh1OSCh1
OSCh1
 
Basics of Operating System
Basics of Operating SystemBasics of Operating System
Basics of Operating System
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
 
Ch3
Ch3Ch3
Ch3
 
Basic os-concepts
Basic os-conceptsBasic os-concepts
Basic os-concepts
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
 
Unit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptxUnit 1-Operating Systems Overview .pptx
Unit 1-Operating Systems Overview .pptx
 
Fundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptxFundamental Operating System Concepts.pptx
Fundamental Operating System Concepts.pptx
 
Operating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionOperating system || Chapter 1: Introduction
Operating system || Chapter 1: Introduction
 
Lecture_01 Operating System Course Introduction
Lecture_01 Operating System Course IntroductionLecture_01 Operating System Course Introduction
Lecture_01 Operating System Course Introduction
 
ITM(2).ppt
ITM(2).pptITM(2).ppt
ITM(2).ppt
 
Operating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTESOperating system (BCS303) MODULE 1 NOTES
Operating system (BCS303) MODULE 1 NOTES
 
Unit 1 q&a
Unit  1 q&aUnit  1 q&a
Unit 1 q&a
 
OS UNIT1.pptx
OS UNIT1.pptxOS UNIT1.pptx
OS UNIT1.pptx
 

Recently uploaded

First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
NaapbooksPrivateLimi
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
XfilesPro
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
ayushiqss
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
MayankTawar1
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
KrzysztofKkol1
 

Recently uploaded (20)

First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
 

Operating system v1 d1

  • 2. What  Broker between user and computer hardware. Manages computer hardware.  Ubiquitous for all computing environments – be it PC , mainframes , IoT devices , smart devices, cloud computing devices etc.  Resource allocator – Acts as manage of a computing system’s resources . Does prioritization of resource requests to resolve conflicts.  Control program – manages the execution of user programs to prevent errors.  The single program which is running at all times in a computing environment.  All code runs on top of OS so knowledge of OS is crucial and important to secure, efficient, effective programming.
  • 4. Types of computer system architecture  Single processor architecture(SPA)  One CPU , single processing core  Have other special purpose processors which are device specific.  Multi-processor architecture(MPA)  Two or more processors with single/multiple core CPU  Benefit increased throughput , though not a linear increase compared to SPA
  • 5. Modes of operation  Typically two modes of operation in computing system – user mode and kernel mode.  Mode bit in H/W of computer indicates the current mode of operation.  User mode used for common user operations.  Kernel mode is for privileged instructions.  Protects OS from malicious users by classifying some instructions as privileged instruction.  Systems with virtualization have different mode for showing when virtual machine manager is in control.  Privileges more than user but less than kernel mode  Used to create and manage VMs without interfering with kernel of host machine.
  • 6. OS as Resource Manager  Process manager –  Process – an active instance of a passive entity called program. A unit of work in a system.  OS responsible for –  Creating and deleting user/kernel processes.  Scheduling processes  Suspending and resuming processes  Process synchronization and communication  Memory Manager  Keeps track of memory usage  Allocating and freeing memory
  • 7. OS as Resource Manager  Cache manager  OS doesn’t deal with hardware based cache.  Replacement policy for cache management.  I/O system manager  Abstract complexity of hardware I/O from user via device driver communiction.
  • 8. OS as Resource Manager  File system manager  File system a logical abstraction of physical properties of storage.  Manages CRUD operations on file  Controls user access rights  File organization – directories and sub-directories  Mass Storage management – Device management for secondary storage
  • 9. Virtualization  Allows abstraction of hardware of single physical computer into multiple distinct execution environment.  User of VM see various running OSes like different applications in single processor system.  OS running as application within other application.  Emulation – Simulating hardware via software used when different CPU has to simulated. High performance cost.  Virtual Machine Manager ( VMM) runs on top of host OS and controls the guest OS
  • 10. Interacting with OS  Multiple ways in which users can interact with OS  CLI ( Command line Interface) – Special program that is running when user first logs in. Systems can have multiple interpreters like Bourne , Korn etc. Typically preferred by power users as it makes their activity easily repeatable and loggable.  GUI ( Graphical user interface) – User friendly graphical interface ( windows , mouse) is used to interact with OS.  Touchscreen interface – Typically used in modern portable devices like mobiles , tablets etc.
  • 11. Process  Program in execution  Made up of following sections  Text section – Executable code of process  Data Section – Global data  Heap section – Dynamically allocated memory  Stack section – Memory keeping track of run time stats  Program != Process . Program is static/passive entity , process active entity  Multiple process running same program considered separate.
  • 12. Process  States of a process –  New – Process being created  Running – Process being executed  Waiting – Process waiting for some input  Ready - Process ready to be assigned to some processor.  Terminated – Process finished execution.  Number of processes which can run at a time == Number of processors (cores)
  • 13. Operations on Process  Process can be created by other process ( parent process).  Process identified by a numeric identifier called PID.  Process is terminated when finishes executing its final statement.
  • 14. Process Communication  Concurrently operating processes can be –  Independent – Having no data sharing between each other  Cooperating – Having data sharing between them  Inter process communication done via –  Shared Memory – Faster than message passing  Message passing – Useful for small amounts of data, preferable for distributed system  Communication can be of two logical kinds -  Direct – Each process must know name of sender or receiver.  Indirect – Process communication done via ports.
  • 15. Thread  Basic unit of CPU utilization.  Finer unit of processing than process.  Threads (of same process) run in shared memory space.  Less resource intensive way to do multiple instances of processing.
  • 16. Benefits of multi-threading  Increased Responsiveness – Similar to pseudo conversational concept of OLTPs  Allows Resource sharing – Allow default sharing of memory of the process to which they belong  Economical in resource usage – Share resources of the overarching process so economical to create.  Scalability
  • 17. Concurrency vs Parallelism  Concurrency – Running multiple tasks in quick succession to give the illusion of mult—processing.  Parallelism – Multiple tasks actually running at a single point of time in parallel.
  • 18. Types of Parallelism  Data Parallelism – Data spread across multiple cores to facilitate fast processing.  Task Parallelism – Tasks spready across multiple cores. Not mutually exclusive , most common usage is hybrid of both