SlideShare a Scribd company logo
Chapter 1: Introduction
What is an Operating System?
A program that acts as an intermediary between a user of a
computer and the computer hardware
Operating system goals:
Execute user programs and make solving user problems
easier
Make the computer system convenient to use
Use the computer hardware in an efficient manner
Computer System Structure
Computer system can be divided into four components:
Hardware – provides basic computing resources
 CPU, memory, I/O devices
Operating system
 Controls and coordinates use of hardware among various
applications and users
Application programs – define the ways in which the system
resources are used to solve the computing problems of the
users
 Word processors, compilers, web browsers, database
systems, video games
Users
 People, machines, other computers
Four Components of a Computer System
Operating System Definition
OS is a resource allocator
Manages all resources
Decides between conflicting requests for efficient and
fair resource use
OS is a control program
Controls execution of programs to prevent errors and
improper use of the computer
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
Review
Computer System Components
What is an OS?
Why do we need to have OS?
Agenda
Computer System Operations
Interrupts
Storage Hierarchy
Computer Architecture
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
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
Common Functions of Interrupts
Interrupt transfers control to the interrupt service routine
generally, through the interrupt vector, which contains the
addresses of all the service routines
Interrupt architecture must save the address of the
interrupted instruction
A trap or exception is a software-generated interrupt
caused either by an error or a user request
An operating system is interrupt driven
Storage Structure
Main memory – only large storage media that the CPU can access
directly
Random access
Typically volatile
Secondary storage – extension of main memory that provides large
nonvolatile storage capacity
Hard disks – rigid metal or glass platters covered with magnetic
recording material
Disk surface is logically divided into tracks, which are subdivided into
sectors
The disk controller determines the logical interaction between the device
and the computer
Solid-state disks – faster than hard disks, nonvolatile
Various technologies
Becoming more popular
Storage Hierarchy
Storage systems organized in hierarchy
Speed
Cost
Volatility
Caching – copying information into faster storage system;
main memory can be viewed as a cache for secondary
storage
Device Driver for each device controller to manage I/O
Provides uniform interface between controller and
kernel
Storage-Device Hierarchy
Computer-System Architecture
Most systems use a single general-purpose processor
Most systems have special-purpose processors as well
Multiprocessors systems growing in use and importance
Also known as parallel systems, tightly-coupled systems
Advantages include:
1. Increased throughput
2. Economy of scale
3. Increased reliability – graceful degradation or fault tolerance
Two types:
1. Asymmetric Multiprocessing – each processor is assigned a
specie task.
2. Symmetric Multiprocessing – each processor performs all tasks
Symmetric Multiprocessing Architecture
A Dual-Core Design
Multi-chip and multicore
Systems containing all chips
Review
Computer System Operations
Interrupts
Storage Hierarchy
Computer Architecture
Agenda
Protection
Computing Environments
Protection and Security
Protection – any mechanism for controlling access of processes or
users to resources defined by the OS
Security – defense of the system against internal and external attacks
Huge range, including denial-of-service, worms, viruses, identity
theft, theft of service
Systems generally first distinguish among users, to determine who
can do what
User identities (user IDs, security IDs) include name and
associated number, one per user
User ID then associated with all files, processes of that user to
determine access control
Group identifier (group ID) allows set of users to be defined and
controls managed, then also associated with each process, file
Computing Environments – Distributed
Distributed computing
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)
Network Operating System provides features between
systems across network
 Communication scheme allows systems to exchange
messages
 Illusion of a single system
Computing Environments – Client-Server
Client-Server Computing
Many systems now servers, responding to requests generated
by clients
Computing Environments - Virtualization
Computing Environments – Cloud Computing
Delivers computing, storage, even apps as a service across a network
Logical extension of virtualization because it uses virtualization as the base
for it functionality.
Many types
Public cloud – available via Internet to anyone willing to pay
Private cloud – run by a company for the company’s own use
Hybrid cloud – includes both public and private cloud components
Software as a Service (SaaS) – one or more applications available via
the Internet (i.e., word processor)
Platform as a Service (PaaS) – software stack ready for application use
via the Internet (i.e., a database server)
Infrastructure as a Service (IaaS) – servers or storage available over
Internet (i.e., storage available for backup use)
Computing Environments – Real-Time Embedded Systems
Real-time embedded systems most prevalent form of computers
Vary considerable, special purpose, limited purpose OS,
real-time OS
Use expanding
Real-time OS has well-defined fixed time constraints
Processing must be done within constraint
Correct operation only if constraints met
Open-Source Operating Systems
Operating systems made available in source-code format rather
than just binary closed-source
Counter to the copy protection and Digital Rights
Management (DRM) movement
Started by Free Software Foundation (FSF), which has
“copyleft” GNU Public License (GPL)
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

More Related Content

Similar to Intro to Operating Systems - Introductory Lectures - Software Engineering (20)

PPT
Ch3 OS
C.U
 
PPTX
Unit 1-Operating Systems Overview .pptx
ThamaraiselviAvinuty
 
PPTX
Operating system (BCS303) MODULE 1 NOTES
KopinathMURUGESAN
 
PPTX
Lecture_01 Operating System Course Introduction
ArnoyKhan
 
PPT
Operating systems structures and their practical applications
nazimsattar
 
PPT
Ch1
rupalidhir
 
PPT
ch1.ppt
BilalWarraich15
 
PPTX
OS UNIT1.pptx
DHANABALSUBRAMANIAN
 
PPT
Mca ii os u-1 introduction to os
Rai University
 
PPT
Operating-System Structures
Cloudbells.com
 
PPT
Operating System
Subhasis Dash
 
PDF
osunit1ppt-23011904470yuoij4-685c22ef.pdf
SuryaChandravelu
 
PPTX
OS UNIT 1 PPT.pptx
PRABAVATHIH
 
PPT
operating system over view.ppt operating sysyems
JyoReddy9
 
PPSX
Operating system
mak120
 
PPT
Os structure
Shehrevar Davierwala
 
PPT
ITM(2).ppt
DimpyJindal4
 
PPTX
2. Operating System Structure,Services,Call, Design and Implementation.pptx
viceprincipalbfc
 
Ch3 OS
C.U
 
Unit 1-Operating Systems Overview .pptx
ThamaraiselviAvinuty
 
Operating system (BCS303) MODULE 1 NOTES
KopinathMURUGESAN
 
Lecture_01 Operating System Course Introduction
ArnoyKhan
 
Operating systems structures and their practical applications
nazimsattar
 
OS UNIT1.pptx
DHANABALSUBRAMANIAN
 
Mca ii os u-1 introduction to os
Rai University
 
Operating-System Structures
Cloudbells.com
 
Operating System
Subhasis Dash
 
osunit1ppt-23011904470yuoij4-685c22ef.pdf
SuryaChandravelu
 
OS UNIT 1 PPT.pptx
PRABAVATHIH
 
operating system over view.ppt operating sysyems
JyoReddy9
 
Operating system
mak120
 
Os structure
Shehrevar Davierwala
 
ITM(2).ppt
DimpyJindal4
 
2. Operating System Structure,Services,Call, Design and Implementation.pptx
viceprincipalbfc
 

Recently uploaded (20)

PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PPTX
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PPTX
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
Ad

Intro to Operating Systems - Introductory Lectures - Software Engineering

  • 2. What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware Operating system goals: Execute user programs and make solving user problems easier Make the computer system convenient to use Use the computer hardware in an efficient manner
  • 3. Computer System Structure Computer system can be divided into four components: Hardware – provides basic computing resources  CPU, memory, I/O devices Operating system  Controls and coordinates use of hardware among various applications and users Application programs – define the ways in which the system resources are used to solve the computing problems of the users  Word processors, compilers, web browsers, database systems, video games Users  People, machines, other computers
  • 4. Four Components of a Computer System
  • 5. Operating System Definition OS is a resource allocator Manages all resources Decides between conflicting requests for efficient and fair resource use OS is a control program Controls execution of programs to prevent errors and improper use of the computer
  • 6. 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
  • 7. Review Computer System Components What is an OS? Why do we need to have OS? Agenda Computer System Operations Interrupts Storage Hierarchy Computer Architecture
  • 8. 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 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
  • 9. Common Functions of Interrupts Interrupt transfers control to the interrupt service routine generally, through the interrupt vector, which contains the addresses of all the service routines Interrupt architecture must save the address of the interrupted instruction A trap or exception is a software-generated interrupt caused either by an error or a user request An operating system is interrupt driven
  • 10. Storage Structure Main memory – only large storage media that the CPU can access directly Random access Typically volatile Secondary storage – extension of main memory that provides large nonvolatile storage capacity Hard disks – rigid metal or glass platters covered with magnetic recording material Disk surface is logically divided into tracks, which are subdivided into sectors The disk controller determines the logical interaction between the device and the computer Solid-state disks – faster than hard disks, nonvolatile Various technologies Becoming more popular
  • 11. Storage Hierarchy Storage systems organized in hierarchy Speed Cost Volatility Caching – copying information into faster storage system; main memory can be viewed as a cache for secondary storage Device Driver for each device controller to manage I/O Provides uniform interface between controller and kernel
  • 13. Computer-System Architecture Most systems use a single general-purpose processor Most systems have special-purpose processors as well Multiprocessors systems growing in use and importance Also known as parallel systems, tightly-coupled systems Advantages include: 1. Increased throughput 2. Economy of scale 3. Increased reliability – graceful degradation or fault tolerance Two types: 1. Asymmetric Multiprocessing – each processor is assigned a specie task. 2. Symmetric Multiprocessing – each processor performs all tasks
  • 15. A Dual-Core Design Multi-chip and multicore Systems containing all chips
  • 16. Review Computer System Operations Interrupts Storage Hierarchy Computer Architecture Agenda Protection Computing Environments
  • 17. Protection and Security Protection – any mechanism for controlling access of processes or users to resources defined by the OS Security – defense of the system against internal and external attacks Huge range, including denial-of-service, worms, viruses, identity theft, theft of service Systems generally first distinguish among users, to determine who can do what User identities (user IDs, security IDs) include name and associated number, one per user User ID then associated with all files, processes of that user to determine access control Group identifier (group ID) allows set of users to be defined and controls managed, then also associated with each process, file
  • 18. Computing Environments – Distributed Distributed computing 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) Network Operating System provides features between systems across network  Communication scheme allows systems to exchange messages  Illusion of a single system
  • 19. Computing Environments – Client-Server Client-Server Computing Many systems now servers, responding to requests generated by clients
  • 20. Computing Environments - Virtualization
  • 21. Computing Environments – Cloud Computing Delivers computing, storage, even apps as a service across a network Logical extension of virtualization because it uses virtualization as the base for it functionality. Many types Public cloud – available via Internet to anyone willing to pay Private cloud – run by a company for the company’s own use Hybrid cloud – includes both public and private cloud components Software as a Service (SaaS) – one or more applications available via the Internet (i.e., word processor) Platform as a Service (PaaS) – software stack ready for application use via the Internet (i.e., a database server) Infrastructure as a Service (IaaS) – servers or storage available over Internet (i.e., storage available for backup use)
  • 22. Computing Environments – Real-Time Embedded Systems Real-time embedded systems most prevalent form of computers Vary considerable, special purpose, limited purpose OS, real-time OS Use expanding Real-time OS has well-defined fixed time constraints Processing must be done within constraint Correct operation only if constraints met
  • 23. Open-Source Operating Systems Operating systems made available in source-code format rather than just binary closed-source Counter to the copy protection and Digital Rights Management (DRM) movement Started by Free Software Foundation (FSF), which has “copyleft” GNU Public License (GPL) 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