Beruflich Dokumente
Kultur Dokumente
a.korani@fci-cu.edu.eg
1.2
Course Description
Part 1: Overview
z
Introduction
Operating-System Structures
Processes
Threads
CPU Scheduling
Main Memory
Virtual Memory
During Lab time, teaching operating system concepts is done through Linux.
1.3
Grading System
Grades will be based on 100 possible points, using
1.4
References
Text Book:
1. Operating System Concepts, 8th
Silberschatz, Galvin and Gagne 2009
2. Modern Operating Systems, A.
Tanenbaum:Prentice-Hall, 2nd Edition, 2008
1.5
Chapter 1: Introduction
Computer System Overview
Computer-System Structure
What is an Operating System?
Computer-System Organization
Operating-System Operations
Process Management
Memory Management
Storage Management
1.6
1.7
Operating system
Controls
Users
People,
1.8
hardware
system programs
application programs
1.9
1.10
time
In
space
OS is a control program
z
1.11
z Efficiency
Allows
1.12
TopTop-down View:
An Extended Machine
Hides
Presents
BottomBottom-up View:
A Resource Manager
Each
Each
1.13
the O/S loads programs and data into memory, initializes I/O devices
and files, schedules the execution of programs
Communications
the O/S allows exchange of information between processes, which are
1.14
1.15
Hardware Elements
Processor
Main Memory
z
z
I/O modules
z
communications equipment
terminals
System bus
z
1.16
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
1.17
Computer-System Operation
Computer Startup
bootstrap program is loaded at power-up or
reboot
Typically
Initialized
Loads
1.18
Processor
1.19
Instruction Cycle
The processor fetches the instruction from memory
Program counter (PC) holds address of the instruction to be
fetched next
1.20
Interrupts
An interruption of the normal sequence of execution
Most I/O devices are slower than the processor
1.21
Interrupt Cycle
1.22
Interrupt Cycle
zInterrupt
1.23
Interrupt Handling
A program that determines nature of the interrupt and performs
Program
arithmetic
overflow
division
by zero
execute
illegal instruction
reference
I/O
Hardware failure
1.24
I/O Structure
After I/O starts, control returns to user program only upon I/O
completion.
z
After I/O starts, control returns to user program without waiting for
I/O completion.
z
1.25
Device-Status Table
1.26
Status register
(ready,
busy, interrupt, )
Data registers
Interrupt
Input on an interrupt
z
1.27
or write to memory
Processor is free to do other things
Device controller transfers blocks of data from buffer
1.28
Storage Structure
Main memory only large storage media that the
1.29
Storage Hierarchy
Storage systems organized in hierarchy.
z
Speed
Cost
Volatility
Increasing capacity
1.30
Storage-Device Hierarchy
1.31
Caching
Important principle, performed at many levels in a
temporarily
Faster storage (cache) checked first to determine if
information is there
z
1.32
Cache Memory
A portion of main memory used as a buffer to temporarily
Some data written out may be referenced again. The data are
retrieved rapidly from the software cache instead of slowly from
disk
1.33
implicit
1.34
Operating-System Operations
Interrupt driven by hardware
Software error or request creates exception or trap
z
components
z
Some
System
1.35
1.36
Types of O/S
Mainframe systems
Desktop & laptop systems
Parallel system
Real-time systems
1.37
1.38
Parallel systems
1.39
Real-time systems
systems controlling scientific experiments, medical imaging
1.40
OS - Main Components
Process management
z
Main-memory management
z
Free-space management
Storage allocation
1.41
Protection system
z Distinguish between authorized and unauthorized usage
z
Command-interpreter System
z
1.42