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

Introduction to operating system
Introduction to operating systemIntroduction to operating system
Introduction to operating system
Aviroop Mandal
 
Lecture 3,4 operating systems
Lecture 3,4   operating systemsLecture 3,4   operating systems
Lecture 3,4 operating systems
Pradeep Kumar TS
 
Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its Components
Mahmuda 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

1_to_10.pdf
1_to_10.pdf1_to_10.pdf
1_to_10.pdf
SHEHABALYAMANI
 
Module 1 Introduction.ppt
Module 1 Introduction.pptModule 1 Introduction.ppt
Module 1 Introduction.ppt
shreesha16
 

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
 
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
 
os unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systemsos unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systems
 

Recently uploaded

Recently uploaded (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 

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