TSN2101 - Operating Systems: Trimester 1, 2013/2014
TSN2101 - Operating Systems: Trimester 1, 2013/2014
Trimester 1, 2013/2014
Textbook
Abraham Silberschatz, Peter Baer Galvin, Greg
Reference books
William Stallings, "Operating Systems: Internals and
Assessment
Mid-term Test (20%)
Lectures 1 - 6
Assignment (10%)
Quizzes (10%)
Quiz 1 (5%)
Lecture 4 CPU scheduling
Quiz 2 (5%)
Lectures 7 & 8 Memory management & Virtual memory
Lecture 1: Introduction to OS
and Computer System
Structures
Operating-System Structure
Operating-System Operations
Process Management
Memory Management
Storage Management
Protection and Security
Objectives
To provide a grand tour of the major operating systems
components
To provide coverage of basic computer system organization
games
Users
People, machines, other computers
resource use
OS is a control program
Controls execution of programs to prevent errors and improper
Computer Startup
bootstrap program is loaded at power-up or reboot
Typically stored in ROM or EPROM, generally known as
firmware
Initializes all aspects of system
Loads operating system kernel and starts execution
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
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
Interrupt Handling
The operating system preserves the state of the CPU by
Interrupt Timeline
I/O Structure
After I/O starts, control returns to user program only upon
I/O completion
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
Storage Hierarchy
Storage systems organized in hierarchy
Speed
Cost
Volatility
Storage-Device Hierarchy
Caching
Important principle, performed at many levels in a computer
Computer-System Architecture
Most systems use a single general-purpose processor (PDAs
through mainframes)
A Dual-Core Design
Clustered Systems
Like multiprocessor systems, but multiple systems working
together
Usually sharing storage via a storage-area network (SAN)
Provides a high-availability service which survives failures
Asymmetric clustering has one machine in hot-standby mode
Symmetric clustering has multiple nodes running applications,
monitoring each other
process
If several jobs ready to run at the same time CPU
scheduling
If processes dont fit in memory, swapping moves them in and
out to run
Virtual memory allows execution of processes not
completely in memory
Operating-System Operations
Interrupt driven by hardware
Process Management
A process is a program in execution. It is a unit of work
resources
completion
threads
Memory Management
All data in memory before and after processing
All instructions in memory in order to execute
Memory management determines what is in memory when
Optimizing CPU utilization and computer response to users
Storage Management
OS provides uniform, logical view of information storage
Abstracts physical properties to logical storage unit - file
Each medium is controlled by device (i.e., disk drive, tape drive)
Varying properties include access speed, capacity, data-transfer rate, access
method (sequential or random)
File-System management
Files usually organized into directories
Access control on most systems to determine who can access what
OS activities include
Creating and deleting files and directories
Primitives to manipulate files and dirs
Mapping files onto secondary storage
Backup files onto stable (non-volatile) storage media
Mass-Storage Management
Usually disks used to store data that does not fit in main memory or data
End of Lecture 1
Slides adopted from the book:
Abraham Silberschatz, Peter Baer Galvin, Greg
Gagne, Operating System Concepts, 8/E, John
Wiley & Sons, 2010. (ISBN: 978-0-470-23399-3)