SlideShare a Scribd company logo
1 of 18
Mrs. V.BACKIYALAKSHMI M.Phil., NET
Assistant professor of Computer Science
E.M.G. Yadava Women’s College, Madurai.
Introduction
What Operating Systems Do
Computer System Organization
Computer System Architecture
Operating System Structure
Operating System Operations
Distributed Systems
Open Source Operating Systems.
UNIT – 1
What Operating Systems Do
 Depends on the point of view
 Users want convenience, ease of use and good performance
 Don’t care about resource utilization
 But shared computer such as mainframe or minicomputer must keep all users
happy
 Operating system is a resource allocator and control program making efficient use of HW
and managing execution of user programs
 Users of dedicate systems such as workstations have dedicated resources but
frequently use shared resources from servers
 Mobile devices like smartphones and tables are resource poor, optimized for
usability and battery life
 Mobile user interfaces such as touch screens, voice recognition
 Some computers have little or no user interface, such as embedded computers in
devices and automobiles
 Run primarily without user intervention
Operating System Definition
● No universally accepted definition
● “Everything a vendor ships when you order an operating system” is a good
approximation
○ But varies wildly
● “The one program running at all times on the computer” is the kernel, part
of the operating system
● Everything else is either
○ A system program (ships with the operating system, but not part of the kernel) , or
○ An application program, all programs not associated with the operating system
● Today’s OS for general purpose and mobile computing also include
middleware – a set of software frameworks that provide additional
services to application developers such as databases, multimedia, graphics
Computer System Organization
 Computer-system operation
 One or more CPUs, device controllers connect through common bus providing access to
shared memory
 Concurrent execution of CPUs and devices competing for memory cycles
Computer-System Operation
● I/O devices and the CPU can execute concurrently
● Each device controller is in charge of a particular device type
● Each device controller has a local buffer
● Each device controller type has an operating system device driver to
manage it
● CPU moves data from/to main memory to/from local buffers
● I/O is from the device to local buffer of controller
● Device controller informs CPU that it has finished its operation by
causing an interrupt
Operating-System Operations
● Bootstrap program – simple code to initialize the system, load the kernel
● Kernel loads
● Starts system daemons (services provided outside of the kernel)
● Kernel interrupt driven (hardware and software)
○ Hardware interrupt by one of the devices
○ Software interrupt (exception or trap):
■ Software error (e.g., division by zero)
■ Request for operating system service – system call
■ Other process problems include infinite loop, processes modifying each other or
the operating system
Multiprogramming (Batch system)
● Single user cannot always keep CPU and I/O devices busy
● Multiprogramming organizes jobs (code and data) so CPU always
has one to execute
● A subset of total jobs in system is kept in memory
● One job selected and run via job scheduling
● When job has to wait (for I/O for example), OS switches to another
job
Multitasking (Timesharing)
● A logical extension of Batch systems– the CPU switches jobs so frequently that
users can interact with each job while it is running, creating interactive
computing
○ Response time should be < 1 second
○ Each user has at least one program executing in memory  process
○ If several jobs ready to run at the same time  CPU scheduling
○ If processes don’t fit in memory, swapping moves them in and out to run
○ Virtual memory allows execution of processes not completely in memory
Memory Layout for Multiprogrammed System
Dual-mode Operation
● Dual-mode operation allows OS to protect itself and other
system components
○ User mode and kernel mode
● Mode bit provided by hardware
○ Provides ability to distinguish when system is running user code or kernel
code.
○ When a user is running  mode bit is “user”
○ When kernel code is executing  mode bit is “kernel”
● How do we guarantee that user does not explicitly set the mode
bit to “kernel”?
○ System call changes mode to kernel, return from call resets it to user
● Some instructions designated as privileged, only executable in
kernel mode
Transition from User to Kernel Mode
Timer
● Timer to prevent infinite loop (or process hogging resources)
○ Timer is set to interrupt the computer after some time period
○ Keep a counter that is decremented by the physical clock
○ Operating system set the counter (privileged instruction)
○ When counter zero generate an interrupt
○ Set up before scheduling process to regain control or terminate program that exceeds
allotted time
Distributed Systems
● Collection of separate, possibly heterogeneous, systems networked
together
○ Network is a communications path, TCP/IP most common
■ Local Area Network (LAN)
■ Wide Area Network (WAN)
■ Metropolitan Area Network (MAN)
■ Personal Area Network (PAN)
● Network Operating System provides features between systems across
network
○ Communication scheme allows systems to exchange messages
○ Illusion of a single system
Distributed Systems
● Collection of separate, possibly heterogeneous, systems networked
together
○ Network is a communications path, TCP/IP most common
■ Local Area Network (LAN)
■ Wide Area Network (WAN)
■ Metropolitan Area Network (MAN)
■ Personal Area Network (PAN)
● Network Operating System provides features between systems across
network
○ Communication scheme allows systems to exchange messages
○ Illusion of a single system
Open-Source Operating Systems
 An Open-source Operating System is the Operating System in which source code is visible
publically and editable.
 The generally known Operating Systems like Microsoft’s Windows, Apple’s iOS and Mac
OS, are closed Operating system.
 Closed Operating Systems are built with numerous codes and complex programming and that
is called source code.
 This source code is kept secret by the respective companies (owners) and inaccessible to
third parties.
 By doing so, they ensure the safety and secure the Operating System and computer from any
threats.
Open-Source Operating Systems
● Operating systems made available in source-code format rather than just
binary closed-source and proprietary
● Counter to the copy protection and Digital Rights Management
(DRM) movement
● Started by Free Software Foundation (FSF), which has “copyleft”
GNU Public License (GPL)
○ Free software and open-source software are two different ideas championed by
different groups of people
■ https://www.gnu.org/philosophy/open-source-misses-the-point.en.html
● Examples include GNU/Linux and BSD UNIX (including core of Mac
OS X), and many more
● Can use VMM like VMware Player (Free on Windows), Virtualbox (open
source and free on many platforms - http://www.virtualbox.com)
○ Use to run guest operating systems for exploration
Operating System concepts

More Related Content

What's hot

Operating systems Overview
Operating systems OverviewOperating systems Overview
Operating systems OverviewNAILBITER
 
System Z operating system
System Z operating systemSystem Z operating system
System Z operating systemArpana shree
 
Introduction to operating system
Introduction to operating systemIntroduction to operating system
Introduction to operating systemAviroop Mandal
 
Lecture 3,4 operating systems
Lecture 3,4   operating systemsLecture 3,4   operating systems
Lecture 3,4 operating systemsPradeep Kumar TS
 
How Operating system works.
How Operating system works. How Operating system works.
How Operating system works. Fahad Farooq
 
Operating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionOperating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionAnkonGopalBanik
 
Operating system and its types
Operating system and its types Operating system and its types
Operating system and its types vimal kumar arora
 
Types of operating system unit 1 by Ram K Paliwal
Types of operating system  unit 1 by Ram K PaliwalTypes of operating system  unit 1 by Ram K Paliwal
Types of operating system unit 1 by Ram K PaliwalRam Paliwal
 
Operating system
Operating systemOperating system
Operating systemAmit Garg
 
Introduction to operating system
Introduction to operating systemIntroduction to operating system
Introduction to operating systemAkshay Ithape
 
Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its ComponentsMahmuda Rahman
 

What's hot (20)

Operating systems Overview
Operating systems OverviewOperating systems Overview
Operating systems Overview
 
OS
OSOS
OS
 
System Z operating system
System Z operating systemSystem Z operating system
System Z operating system
 
operating system
operating systemoperating system
operating system
 
Introduction to operating system
Introduction to operating systemIntroduction to operating system
Introduction to operating system
 
Operating system
Operating systemOperating system
Operating system
 
Lecture 3,4 operating systems
Lecture 3,4   operating systemsLecture 3,4   operating systems
Lecture 3,4 operating systems
 
How Operating system works.
How Operating system works. How Operating system works.
How Operating system works.
 
Operating system || Chapter 1: Introduction
Operating system || Chapter 1: IntroductionOperating system || Chapter 1: Introduction
Operating system || Chapter 1: Introduction
 
Operating system and its types
Operating system and its types Operating system and its types
Operating system and its types
 
Types of o.s
Types of o.sTypes of o.s
Types of o.s
 
operating system
operating systemoperating system
operating system
 
Types of operating system unit 1 by Ram K Paliwal
Types of operating system  unit 1 by Ram K PaliwalTypes of operating system  unit 1 by Ram K Paliwal
Types of operating system unit 1 by Ram K Paliwal
 
Chapter02 new
Chapter02 newChapter02 new
Chapter02 new
 
Operating System
Operating SystemOperating System
Operating System
 
Types of os
Types of osTypes of os
Types of os
 
Operating systems
Operating systemsOperating systems
Operating systems
 
Operating system
Operating systemOperating system
Operating system
 
Introduction to operating system
Introduction to operating systemIntroduction to operating system
Introduction to 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
 

Similar to Operating System concepts

Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts PresentationNitish Jadia
 
What is an Operating Systems?
What is an Operating Systems?What is an Operating Systems?
What is an Operating Systems?JayaKamal
 
Introduction to Operating Systems.pdf
Introduction to Operating Systems.pdfIntroduction to Operating Systems.pdf
Introduction to Operating Systems.pdfHarika Pudugosula
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxakhilagajjala
 
Operating system lecture1
Operating system lecture1Operating system lecture1
Operating system lecture1AhalyaSri
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecturejeetesh036
 
operating system introduction- basics of operating system, definition, meanin...
operating system introduction- basics of operating system, definition, meanin...operating system introduction- basics of operating system, definition, meanin...
operating system introduction- basics of operating system, definition, meanin...DEVIRAJAM
 
Module 1 Introduction.ppt
Module 1 Introduction.pptModule 1 Introduction.ppt
Module 1 Introduction.pptshreesha16
 
Introduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary MargaratIntroduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary MargaratMary Margarat
 
chapter 1 introduction to operating system
chapter 1 introduction to operating systemchapter 1 introduction to operating system
chapter 1 introduction to operating systemAisyah Rafiuddin
 
Operating System BCA 301
Operating System BCA 301Operating System BCA 301
Operating System BCA 301cpjcollege
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and typesPrakash Sir
 

Similar to Operating System concepts (20)

1_to_10.pdf
1_to_10.pdf1_to_10.pdf
1_to_10.pdf
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts Presentation
 
What is an Operating Systems?
What is an Operating Systems?What is an Operating Systems?
What is an Operating Systems?
 
Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
 
Unit I OS CS.ppt
Unit I OS CS.pptUnit I OS CS.ppt
Unit I OS CS.ppt
 
Operating System
Operating SystemOperating System
Operating System
 
Introduction to Operating Systems.pdf
Introduction to Operating Systems.pdfIntroduction to Operating Systems.pdf
Introduction to Operating Systems.pdf
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptx
 
Operating system lecture1
Operating system lecture1Operating system lecture1
Operating system lecture1
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
operating system introduction- basics of operating system, definition, meanin...
operating system introduction- basics of operating system, definition, meanin...operating system introduction- basics of operating system, definition, meanin...
operating system introduction- basics of operating system, definition, meanin...
 
Module 1 Introduction.ppt
Module 1 Introduction.pptModule 1 Introduction.ppt
Module 1 Introduction.ppt
 
Operating System Overview.pdf
Operating System Overview.pdfOperating System Overview.pdf
Operating System Overview.pdf
 
Introduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary MargaratIntroduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary Margarat
 
chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.ppt
 
chapter 1 introduction to operating system
chapter 1 introduction to operating systemchapter 1 introduction to operating system
chapter 1 introduction to operating system
 
Operating System BCA 301
Operating System BCA 301Operating System BCA 301
Operating System BCA 301
 
Oslecture1
Oslecture1Oslecture1
Oslecture1
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and types
 
Unit 1 q&amp;a
Unit  1 q&amp;aUnit  1 q&amp;a
Unit 1 q&amp;a
 

Recently uploaded

Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTechSoup
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersPedroFerreira53928
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringDenish Jangid
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfDr. M. Kumaresan Hort.
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Celine George
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxheathfieldcps1
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxjmorse8
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxCeline George
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointELaRue0
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportAvinash Rai
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Celine George
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdfVikramadityaRaj
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya - UEM Kolkata Quiz Club
 

Recently uploaded (20)

Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdfPost Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdf
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 

Operating System concepts

  • 1. Mrs. V.BACKIYALAKSHMI M.Phil., NET Assistant professor of Computer Science E.M.G. Yadava Women’s College, Madurai.
  • 2. Introduction What Operating Systems Do Computer System Organization Computer System Architecture Operating System Structure Operating System Operations Distributed Systems Open Source Operating Systems. UNIT – 1
  • 3. What Operating Systems Do  Depends on the point of view  Users want convenience, ease of use and good performance  Don’t care about resource utilization  But shared computer such as mainframe or minicomputer must keep all users happy  Operating system is a resource allocator and control program making efficient use of HW and managing execution of user programs  Users of dedicate systems such as workstations have dedicated resources but frequently use shared resources from servers  Mobile devices like smartphones and tables are resource poor, optimized for usability and battery life  Mobile user interfaces such as touch screens, voice recognition  Some computers have little or no user interface, such as embedded computers in devices and automobiles  Run primarily without user intervention
  • 4. Operating System Definition ● No universally accepted definition ● “Everything a vendor ships when you order an operating system” is a good approximation ○ But varies wildly ● “The one program running at all times on the computer” is the kernel, part of the operating system ● Everything else is either ○ A system program (ships with the operating system, but not part of the kernel) , or ○ An application program, all programs not associated with the operating system ● Today’s OS for general purpose and mobile computing also include middleware – a set of software frameworks that provide additional services to application developers such as databases, multimedia, graphics
  • 5. Computer System Organization  Computer-system operation  One or more CPUs, device controllers connect through common bus providing access to shared memory  Concurrent execution of CPUs and devices competing for memory cycles
  • 6. Computer-System Operation ● I/O devices and the CPU can execute concurrently ● Each device controller is in charge of a particular device type ● Each device controller has a local buffer ● Each device controller type has an operating system device driver to manage it ● CPU moves data from/to main memory to/from local buffers ● I/O is from the device to local buffer of controller ● Device controller informs CPU that it has finished its operation by causing an interrupt
  • 7. Operating-System Operations ● Bootstrap program – simple code to initialize the system, load the kernel ● Kernel loads ● Starts system daemons (services provided outside of the kernel) ● Kernel interrupt driven (hardware and software) ○ Hardware interrupt by one of the devices ○ Software interrupt (exception or trap): ■ Software error (e.g., division by zero) ■ Request for operating system service – system call ■ Other process problems include infinite loop, processes modifying each other or the operating system
  • 8. Multiprogramming (Batch system) ● Single user cannot always keep CPU and I/O devices busy ● Multiprogramming organizes jobs (code and data) so CPU always has one to execute ● A subset of total jobs in system is kept in memory ● One job selected and run via job scheduling ● When job has to wait (for I/O for example), OS switches to another job
  • 9. Multitasking (Timesharing) ● A logical extension of Batch systems– the CPU switches jobs so frequently that users can interact with each job while it is running, creating interactive computing ○ Response time should be < 1 second ○ Each user has at least one program executing in memory  process ○ If several jobs ready to run at the same time  CPU scheduling ○ If processes don’t fit in memory, swapping moves them in and out to run ○ Virtual memory allows execution of processes not completely in memory
  • 10. Memory Layout for Multiprogrammed System
  • 11. Dual-mode Operation ● Dual-mode operation allows OS to protect itself and other system components ○ User mode and kernel mode ● Mode bit provided by hardware ○ Provides ability to distinguish when system is running user code or kernel code. ○ When a user is running  mode bit is “user” ○ When kernel code is executing  mode bit is “kernel” ● How do we guarantee that user does not explicitly set the mode bit to “kernel”? ○ System call changes mode to kernel, return from call resets it to user ● Some instructions designated as privileged, only executable in kernel mode
  • 12. Transition from User to Kernel Mode
  • 13. Timer ● Timer to prevent infinite loop (or process hogging resources) ○ Timer is set to interrupt the computer after some time period ○ Keep a counter that is decremented by the physical clock ○ Operating system set the counter (privileged instruction) ○ When counter zero generate an interrupt ○ Set up before scheduling process to regain control or terminate program that exceeds allotted time
  • 14. Distributed Systems ● Collection of separate, possibly heterogeneous, systems networked together ○ Network is a communications path, TCP/IP most common ■ Local Area Network (LAN) ■ Wide Area Network (WAN) ■ Metropolitan Area Network (MAN) ■ Personal Area Network (PAN) ● Network Operating System provides features between systems across network ○ Communication scheme allows systems to exchange messages ○ Illusion of a single system
  • 15. Distributed Systems ● Collection of separate, possibly heterogeneous, systems networked together ○ Network is a communications path, TCP/IP most common ■ Local Area Network (LAN) ■ Wide Area Network (WAN) ■ Metropolitan Area Network (MAN) ■ Personal Area Network (PAN) ● Network Operating System provides features between systems across network ○ Communication scheme allows systems to exchange messages ○ Illusion of a single system
  • 16. Open-Source Operating Systems  An Open-source Operating System is the Operating System in which source code is visible publically and editable.  The generally known Operating Systems like Microsoft’s Windows, Apple’s iOS and Mac OS, are closed Operating system.  Closed Operating Systems are built with numerous codes and complex programming and that is called source code.  This source code is kept secret by the respective companies (owners) and inaccessible to third parties.  By doing so, they ensure the safety and secure the Operating System and computer from any threats.
  • 17. Open-Source Operating Systems ● Operating systems made available in source-code format rather than just binary closed-source and proprietary ● Counter to the copy protection and Digital Rights Management (DRM) movement ● Started by Free Software Foundation (FSF), which has “copyleft” GNU Public License (GPL) ○ Free software and open-source software are two different ideas championed by different groups of people ■ https://www.gnu.org/philosophy/open-source-misses-the-point.en.html ● Examples include GNU/Linux and BSD UNIX (including core of Mac OS X), and many more ● Can use VMM like VMware Player (Free on Windows), Virtualbox (open source and free on many platforms - http://www.virtualbox.com) ○ Use to run guest operating systems for exploration