1.5 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th EditionComputer System Structure applications and users resources are used to solve the computing problems of th
Trang 1Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Chapter 1: Introduction
Trang 31.3 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Objectives
Trang 4What is an Operating System?
and the computer hardware
Trang 51.5 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Computer System Structure
applications and users
resources are used to solve the computing problems of the users
systems, video games
Trang 6Four Components of a Computer System
Trang 71.7 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
What Operating Systems Do
users happy
life
computers in devices and automobiles
Trang 8Operating System Definition
use
of the computer
Trang 91.9 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Operating System Definition (Cont.)
good approximation
But varies wildly
Everything else is either a system program (ships with the operating
system) or an application program
Trang 10Computer Startup
Initializes all aspects of system
Trang 111.11 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Computer System Organization
bus providing access to shared memory
memory cycles
Trang 12Computer-System Operation
I/O is from the device to local buffer of controller
causing an interrupt
Trang 131.13 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
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
instruction
processed to prevent a lost interrupt
user request
Trang 14Interrupt Handling
registers and the program counter
each type of interrupt
Trang 151.15 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Interrupt Timeline
Trang 16I/O Structure
completion
Wait instruction idles the CPU until the next interrupt
simultaneous I/O processing
After I/O starts, control returns to user program without waiting for I/
O completion
wait for I/O completion
its type, address, and state
device status and to modify table entry to include interrupt
Trang 171.17 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Direct Memory Access Structure
memory speeds
Device controller transfers blocks of data from buffer storage directly to
main memory without CPU intervention
per byte
Trang 18recording material
Disk surface is logically divided into tracks, which are subdivided into sectors
device and the computer
Trang 191.19 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
memory can be viewed as a cache for secondary storage
Trang 20Storage-Device Hierarchy
Trang 211.21 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Caching
hardware, operating system, software)
there
If it is, information used directly from the cache (fast)
Trang 22Computer-System Architecture
mainframes)
Trang 231.23 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
How a Modern Computer Works
A von Neumann architecture
Trang 24Symmetric Multiprocessing Architecture
Trang 251.25 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
A Dual-Core Design
Trang 26Clustered Systems
Provides a high-availability service which survives failures
monitoring each other
Applications must be written to use parallelization
Trang 271.27 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Clustered Systems
Trang 28Operating System Structure
execute
so frequently that users can interact with each job while it is running, creating
Trang 291.29 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Memory Layout for Multiprogrammed System
Trang 30Operating-System Operations
Software error or request creates exception or trap
other or the operating system
components
Trang 311.31 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Transition from User to Kernel Mode
Set interrupt after specific period
program that exceeds allotted time
Trang 32Process Management
A process is a program in execution It is a unit of work within the
system Program is a passive entity, process is an active entity.
Initialization data
location of next instruction to execute
Process executes instructions sequentially, one at a time, until completion
system running concurrently on one or more CPUs
threads
Trang 331.33 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Process Management Activities
The operating system is responsible for the following activities in
connection with process management:
Trang 34Memory Management
and by whom
and out of memory
Trang 351.35 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Storage Management
Abstracts physical properties to logical storage unit - file
Each medium is controlled by device (i.e., disk drive, tape drive)
data-transfer rate, access method (sequential or random)
Files usually organized into directories
what
Creating and deleting files and directories
Primitives to manipulate files and dirs
Trang 36Mass-Storage Management
data that must be kept for a “long” period of time
(read-write)
Trang 371.37 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Performance of Various Levels of Storage
implicit
Trang 38Migration of Integer A from Disk to Register
matter where it is stored in the storage hierarchy
such that all CPUs have the most recent value in their cache
Trang 391.39 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
I/O Subsystem
the user
temporarily while it is being transferred), caching (storing parts of data in faster storage for performance), spooling (the overlapping
of output of one job with input of other jobs)
Trang 40Protection and Security
users to resources defined by the OS
theft, theft of service
Trang 411.41 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Distributed Computing
network
Illusion of a single system
Trang 42Special-Purpose Systems
Trang 431.43 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Computing Environments
mainframe or minicomputers providing batch and timesharing
access to same resources
Trang 44Computing Environments (Cont.)
services (i.e., database)
retrieve files
Trang 451.45 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Peer-to-Peer Computing
Registers its service with central lookup service on network, or
Trang 46Web-Based Computing
load balancers
into Linux and Windows XP, which can be clients and servers
Trang 471.47 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition
Open-Source Operating Systems
GNU Public License (GPL)
Trang 48End of Chapter 1