Section01 Overview
Section01 Overview
OVERVIEW
Jerry Breecher
1: Operating Systems Overview 1
OPERATING SYSTEM
OVERVIEW
WHAT IS AN OPERATING SYSTEM?
Humans
Program Interface
User Programs
O.S. Interface
O.S.
Disk/Tape/Memory
1: Operating Systems Overview 3
OPERATING Component
SYSTEM
A mechanism for scheduling jobs or processes. Scheduling can be as simple
as running the next process, or it can use relatively complex rules to pick
a running process.
Off Line Processing; not only are IO and CPU happening concurrently, but
some off-board processing is occurring with the IO.
1: Operating Systems 4
OPERATING Component
SYSTEM
The CPU is wasted if a job waits for I/O. This leads to:
1: Operating Systems 5
OPERATING
Characteristic
SYSTEM
Other Characteristics include:
• Time Sharing - multiprogramming environment that's also interactive.
• Multiprocessing - Tightly coupled systems that communicate via shared memory. Used for
scientific applications. Used for speed improvement by putting together a number of off- the-shelf
processors.
• Distributed Systems - Loosely coupled systems that communicate via message passing.
Advantages include resource sharing, speed up, reliability, communication.
• Real Time Systems - Rapid response time is main characteristic. Used in control of applications
where rapid response to a stimulus is essential.
1: Operating Systems 6
OPERATING
Characteristic
SYSTEM
Interrupts:
• Interrupt transfers control to the interrupt service routine generally, through the
interrupt vector, which contains the addresses of all the service routines.
• Interrupt architecture must save the address of the interrupted instruction.
• Incoming interrupts are disabled while another interrupt is being processed to prevent a lost
interrupt.
• A trap is a software-generated interrupt caused either by an error or a user request.
• An operating system is interrupt driven.
1: Operating Systems 7
OPERATING Hardwar
SYSTEM e
Any of these
devices can
cause an
electrical interrupt
that grabs the
attention of the
1: Operating Systems 8
OPERATING Hardwar
SYSTEM e
Sequence
of events
for
processin
g an IO
request.
Comparing
Synchronous
and
Asynchronous
IO Operations
1: Operating Systems 9
OPERATING Hardwar
SYSTEM e
1: Operating Systems 1
OPERATING Storage
SYSTEM Hierarch
Very fast storage is very expensive. So the Operating System manages a hierarchy of storage devices
in order to make the best use of resources. In fact, considerable effort goes into this support.
Slow an Cheap
1: Operating Systems 1
OPERATING Storage
SYSTEM Hierarch
Performance:
1: Operating Systems 1
OPERATING Storage
SYSTEM Hierarch
Caching:
•Important principle, performed at many levels in a computer (in hardware, operating
system, software)
•Information in use copied from slower to faster storage temporarily
•Faster storage (cache) checked first to determine if information is there
• If it is, information used directly from the cache (fast)
• If not, data copied to cache and used there
•Cache smaller than storage being cached
• Cache management important design problem
• Cache size and replacement policy
1: Operating Systems 1
OPERATING Protectio
SYSTEM
The goal is protecting the Operating System and others
from malicious or ignorant users.
1: Operating Systems 1
OPERATING Protectio
SYSTEM
Memory A user program can only access its own logical memory. For instance, it
can't modify supervisor code. Depends on an address translation scheme such as
that shown here.
1: Operating Systems 1
OPERATING Protectio
SYSTEM
CPU A clock prevents programs from using all the CPU time. This clock
causes an interrupt that causes the operating system to gain control from a user
program.
1: Operating Systems 1
OPERATING SYSTEM OVERVIEW
WRAPUP
We’ve completed our first overview of an Operating System – this was
the equivalent of a Satellite picture.
1: Operating Systems 1