SlideShare a Scribd company logo
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 Overview
NAILBITER
 
OS
OSOS
System Z operating system
System Z operating systemSystem Z operating system
System Z operating system
Arpana shree
 
operating system
operating systemoperating system
operating system
hamidah rehman
 
Introduction to operating system
Introduction to operating systemIntroduction to operating system
Introduction to operating system
Aviroop Mandal
 
Operating system
Operating systemOperating system
Operating system
ǷřiţëƧh Chąuhąn
 
Lecture 3,4 operating systems
Lecture 3,4   operating systemsLecture 3,4   operating systems
Lecture 3,4 operating systems
Pradeep 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: Introduction
AnkonGopalBanik
 
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 o.s
Types of o.sTypes of o.s
Types of o.s
KYousuf786
 
operating system
operating systemoperating system
operating system
Mandavi Classes
 
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
Ram Paliwal
 
Chapter02 new
Chapter02 newChapter02 new
Chapter02 new
vmummaneni
 
Operating System
Operating SystemOperating System
Operating System
ushabarad142
 
Types of os
Types of osTypes of os
Types of os
J.T.A.JONES
 
Operating systems
Operating systemsOperating systems
Operating systems
Srishti Gupta
 
Operating system
Operating systemOperating system
Operating system
Amit Garg
 
Introduction to operating system
Introduction to operating systemIntroduction to operating system
Introduction to operating system
Akshay Ithape
 
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
 
Operating System Concepts Presentation
Operating System Concepts PresentationOperating System Concepts Presentation
Operating System Concepts Presentation
Nitish Jadia
 
What is an Operating Systems?
What is an Operating Systems?What is an Operating Systems?
What is an Operating Systems?
JayaKamal
 
Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
Syed Zaid Irshad
 
Unit I OS CS.ppt
Unit I OS CS.pptUnit I OS CS.ppt
Unit I OS CS.ppt
Suganthi Vasanth Raj
 
Operating System
Operating SystemOperating System
Operating System
Hitesh Mohapatra
 
Introduction to Operating Systems.pdf
Introduction to Operating Systems.pdfIntroduction to Operating Systems.pdf
Introduction to Operating Systems.pdf
Harika Pudugosula
 
CSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptxCSE3120- Module1 part 1 v1.pptx
CSE3120- Module1 part 1 v1.pptx
akhilagajjala
 
Operating system lecture1
Operating system lecture1Operating system lecture1
Operating system lecture1
AhalyaSri
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
jeetesh036
 
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.ppt
shreesha16
 
Operating System Overview.pdf
Operating System Overview.pdfOperating System Overview.pdf
Operating System Overview.pdf
PrashantKhobragade3
 
Introduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary MargaratIntroduction to Operating Systems - Mary Margarat
Introduction to Operating Systems - Mary Margarat
Mary Margarat
 
chapter1.ppt
chapter1.pptchapter1.ppt
chapter1.ppt
UsamaKhan987353
 
chapter 1 introduction to operating system
chapter 1 introduction to operating systemchapter 1 introduction to operating system
chapter 1 introduction to operating system
Aisyah Rafiuddin
 
Operating System BCA 301
Operating System BCA 301Operating System BCA 301
Operating System BCA 301
cpjcollege
 
Module-1.ppt operating system unit 1 notes
Module-1.ppt operating system unit 1 notesModule-1.ppt operating system unit 1 notes
Module-1.ppt operating system unit 1 notes
FaizanAhmad293255
 
Oslecture1
Oslecture1Oslecture1
Oslecture1
rizwanaabassi
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and types
Prakash 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
 
Module-1.ppt operating system unit 1 notes
Module-1.ppt operating system unit 1 notesModule-1.ppt operating system unit 1 notes
Module-1.ppt operating system unit 1 notes
 
Oslecture1
Oslecture1Oslecture1
Oslecture1
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and types
 

Recently uploaded

Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 

Recently uploaded (20)

Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.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