Lecture 1 - Computer System Overview
Lecture 1 - Computer System Overview
Systems:
Internals
and
Chapter 1
Design Computer
Principles
System Overview
Eighth Edition
By William Stallings
Operating System
Manages hardware resources and
software
Manages secondary memory and I/O
devices
Provides a set of services to system users
A modern computer
system
Basic Elements
I/O
Proces Module
sor s
Main System
Memor Bus
y
Processor
Performs the
Controls the
data
operation of
processing
the computer
functions
Referred to as
the Central
Processing
Unit (CPU)
Main Memory
Volatile
Provides
for
communication among
processors, main
memory, and I/O
modules
Instruction Execution
A program consists of a set of
instructions stored in memory
processor reads
processor
(fetches)
executes each
instructions from
instruction
memory
Two steps
Instruction Fetch
and Execute
Theprocessor fetches the instruction
from memory
Program counter (PC) holds address of
the instruction to be fetched next
PC is incremented after each fetch
Instruction Register
(IR)
Processor interprets
Fetched instruction is
loaded into the instruction and
Instruction Register performs required
(IR) action:
Processor-
memory
Processor-I/O
Data processing
Control
Interrupts
Interrupt
– a signal to the processor emitted by
hardware/software indicating an event needs
immediate attention.
Interrupt the normal sequencing of the
processor
Software interrupts, hardware interrupts
Faster Greater
access capacity =
time = smaller cost
greater per bit Greater
cost per capacity =
bit slower
access speed
The Memory Hierarchy
Going down the
hierarchy:
decreasing cost per
bit
increasing capacity
increasing access time
decreasing frequency
of access to the
memory by the
Second
ary
Memory
Also referred
to as
auxiliary
memory
• external
• nonvolatile
• used to store
program and
data files
Cache Memory
Invisible to the OS
Interacts with other memory management hardware
Processor must access memory at least once per
instruction cycle
Processor execution is limited by memory cycle time
Exploit the principle of locality with a small, fast
memory
I/O Techniques
∗ When the processor encounters an instruction
relating to I/O, it executes that instruction by
issuing a command to the appropriate I/O
module
Three techniques are possible for I/O
operations:
Programme Direct
d I/O Interrupt-
Memory
Driven I/O
(Polling) Access (DMA)
I/O Techniques
Programmed I/O
The I/O module performs the requested
action then sets the appropriate bits in the
I/O status register
The processor periodically checks the
status of the I/O module until it determines
the instruction is complete
With programmed I/O the performance
level of the entire system is severely
degraded
Interrupt-Driven I/O
Processor
issues an
I/O The
command processor
to a module executes the
and then data transfer
goes on to and then
do some resumes its
other useful former
work processing
Clusters
Symmetric Multiprocessors
(SMP)
Symmetric Multiprocessors
(SMP)
A stand-alone computer system with
the following characteristics:
two or more similar processors of comparable capability
processors share the same main memory and are
interconnected by a bus or other internal connection
scheme
processors share access to I/O devices
all processors can perform the same functions
the system is controlled by an integrated operating system
that provides interaction between processors and their
programs at the job, task, file, and data element levels
SMP Advantages
Performance Scaling
• a system with multiple • vendors can offer a
processors will yield range of products with
greater performance if different price and
work can be done in performance
parallel characteristics