Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Chapter 1: Introduction
What Operating Systems Do
Computer-System Organization
Computer-System Architecture
Operating-System Structure
Operating-System Operations
Process Management
Memory Management
Storage Management
Protection and Security
1.2
Objectives
To provide a grand tour of the major operating systems components
To provide coverage of basic computer system organization
1.3
1.4
1.5
Operating system
Users
government/management.
1.6
User view
System view
1.7
1.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
1.9
Computer Startup
bootstrap program is loaded at power-up or reboot
1.10
the interrupt vector, which contains the addresses of all the service
routines
1.11
Interrupt Timeline
1.12
Storage Structure
CPU can load instructions only from memory, so any programs run must be
stored there.
1.13
Storage Hierarchy
Storage systems organized in hierarchy
Speed
Cost
Volatility
size
1.14
Storage-Device Hierarchy
1.15
I/O Structure
A large portion of OS tasks dedicated to manage I/O due to varying nature of
devices.
purpose register.
2.
3.
Once completed, device controller will inform device driver via an interrupt
that it has finished.
4.
Then the device driver returns control to the OS, returning pointer of
data /update the info. Status.
1.16
memory speeds
Device controller transfers blocks of data from buffer storage directly to main
Only one interrupt is generated per block, rather than the one interrupt per
byte
1.17
Computer-System Architecture
Two types:
Single-Processor Systems
Multiprocessor Systems
1.18
1.19
Multiprocessor Systems
Multiprocessors systems growing in use and importance
Advantages include
1.
Increased throughput
2.
Economy of scale
o
3.
Two types
1.
Asymmetric Multiprocessing
2.
Symmetric Multiprocessing
- Each processor perform all tasks,peer to peer
1.20
1.21
A Dual-Core Design
1.22
Clustered Systems
Like multiprocessor systems, but multiple systems working together
Asymmetric clustering has one machine in hot-standby modeMonitor the active server, if server fails it will become active server.
1.23
Single user cannot keep CPU and I/O devices busy at all times
1.24
1.25
Each user is given the impression that the entire system is dedicated for him/her
even though it is shared among users.
If processes dont fit in memory, swapping moves them in and out to run
Virtual memory allows execution of processes not completely in memoryenable users to run programs that are larger than actual physical memory.
1.26
Operating-System Operations
Interrupt driven by hardware, if no job at all, os will sit quietly.
Software error or request creates exception or trap
components
System call changes mode to kernel, return from call resets it to user
1.27
call.
illegal instructions, access memory then the hardware will trap- terminate
program abnormally.
Timer- Avoid user program to get stuck in an infinite loop/fail to call system
1.28
Process Management
Initialization data-input
Typically system has many processes, some user, some operating system running
concurrently on one or more CPUs
1.29
1.30
Memory Management
Main memory is a repository of quickly accessible data shared by the CPU
Processor reads instructions from main memory, and data from disk should
Keeping track of which parts of memory are currently being used and by
whom
Deciding which processes and data to move into and out of memory
1.31
Storage Management
OS provides logical and uniform info storage.
File-System management
OS activities include
1.32
Mass-Storage Management
Main memory is small to accommodate data and program and volatile
Thus secondary storage is needed.
OS activities
Free-space management
Storage allocation
Disk scheduling
1.33
Caching
Information in use copied from slower to faster storage temporarily
Faster storage (cache) checked first to determine if information is
there
Without cache, cpu have to wait several cycles for the instructions
1.34
1.35
such that all CPUs have the most recent value in their cache
1.36
I/O Subsystem
One purpose of OS is to hide peculiarities-strange of hardware devices
1.37
do what
1.38
End of Chapter 1