Chapter 1: Introduction Chapter 1: Introduction: 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts
Chapter 1: Introduction Chapter 1: Introduction: 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts
Chapter 1: Introduction
Chapter 1: Introduction
1
3/25/2016
Objectives
2
3/25/2016
3
3/25/2016
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
4
3/25/2016
Computer Startup
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
5
3/25/2016
Computer--System Operation
Computer
6
3/25/2016
Interrupt Handling
Interrupt Timeline
7
3/25/2016
I/O Structure
After I/O starts, control returns to user program only upon I/O
completion. (Synchronous)
Wait instruction idles the CPU until the next interrupt
Wait loop (conflict for memory access).
At most one I/O request is considered at a time, no
simultaneous I/O processing.
After I/O starts, control returns to user program without waiting
for I/O completion. (Asynchronous)
System call – request to the operating system to allow user
to wait for I/O completion, if desired.
Device-status table contains entry for each I/O device
indicating its type, address, and state.
Operating system indexes into I/O device table to determine
device status and to modify table entry to include interrupt.
The main advantage of asynchronous I/O is increased
system efficiency.
Synchronous Asynchronous
8
3/25/2016
Device--Status Table
Device
9
3/25/2016
Storage Structure
Main memory – only large storage media that the CPU can access
directly.
Secondary storage – extension of main memory that provides large
nonvolatile storage capacity.
Magnetic 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.
Storage Hierarchy
10
3/25/2016
Storage--Device Hierarchy
Storage
Caching
11
3/25/2016
12
3/25/2016
13
3/25/2016
Operating--System Operations
Operating
14
3/25/2016
Process Management
15
3/25/2016
Memory Management
Storage Management
16
3/25/2016
Mass--Storage Management
Mass
Usually disks used to store data that does not fit in main memory or data
that must be kept for a “long” period of time.
Proper management is of central importance
Entire speed of computer operation hinges on disk subsystem and its
algorithms
OS activities
Free-space management
Storage allocation
Disk scheduling
Some storage need not be fast
Tertiary storage includes optical storage, magnetic tape
Still must be managed
Varies between WORM (write-once, read-many-times) and RW (read-
write)
I/O Subsystem
17
3/25/2016
Computing Environments
Traditional computer
Blurring over time
Office environment
PCs connected to a network, terminals attached to
mainframe or minicomputers providing batch and
timesharing
Now portals allowing networked and remote systems
access to same resources
Home networks
Used to be single system, then modems
Now firewalled, networked
18
3/25/2016
Client-Server Computing
Dumb terminals supplanted by smart PCs
Many systems now servers, responding to requests generated by
clients
Compute-server provides an interface to client to request
services (i.e. database)
File-server provides interface for clients to store and retrieve
files
Peer--to-
Peer to-Peer Computing
19
3/25/2016
Web--Based Computing
Web
Web is everywhere
PCs most common devices
More devices becoming networked to allow web access
New category of devices to manage web traffic among similar
servers: load balancers
Use of operating systems like Windows 95, client-side, have
evolved into Linux and Windows XP, which can be clients and
servers
End of Chapter 1
20