Os 1
Os 1
Objectives
1. A firm understanding about OS, its primary
purpose and goals to a computer system;
2. Trace the history of OS and the development
of systems.
3. Concepts basic to OS;
4. OS components and its component
management;
5. Computer system operations, structure of the
computer systems and hardware protection;
6. Services of OS.
Introduction
Major components of Computer Systems:
Hardware
Computer users
Software
Note:
Without software, computer is of little use. However
with software, computer can store, manipulate and
retrieve information, and can engage in many other
activities.
Introduction
Software can be grouped into:
System software (OS and utilities)
Application software (user programs)
compiler
compiler assembler
assembler text
texteditor
editor database
databasesystems
systems
AAppppl li iccaat ti ioonn PPrrooggrraammss
OPERATING
OPERATINGSYSTEMS
SYSTEMS
Computer
ComputerHardware
Hardware
Introduction
Utilities
Utilities Application
Application
Software
Software
OS
OS
device
device device
device …
… device
device
CPU
CPU
M
M ee m
m oo rr yy
Introduction
Without an OS, a user who wanted to run a
program that uses some of the resources of
the system will need to write a program that
includes code for driving the resources
required. Code for handling keyboard,
printers, etc. have to be written.
Introduction
To alleviate these difficulties, OS contains set
of procedures for driving the resources of the
system, thus it frees the users from the dirty
details of writing these drivers for the devices
involved in the problem being solved.
What is OS?
Program implemented either in firmware or
software which acts as an intermediary
between the user of a computer and the
computer hardware.
Collection of system programs (procedures)
that together control the operation of a
computer system.
The purpose is to provide an environment
wherein users can execute programs
Different OS
Mainframe OS
designed to optimize utilization of hardware.
PC OS
supports games, business applications, and the
like.
Handheld OS
designed to interface with the computer to
execute programs.
Primary goals of an OS
1. Make the computer convenient to use
2. Use the computer hardware in an efficient
manner.
Sizes of OS
Its size & complexity depend on a number of
factors:
Computer system characteristics: (has one or more
processors)
Provides facilities: (allows interactive use or not?)
Handle errors
Where are OS found?
Complexity of OS depends on the type of
functionality it provides:
Some OS manage many users on a network.
Spooling
Simultaneous Peripheral Operation Online.
Uses disk as input device and for storing output files.
B. Multiprogrammed Batch Systems
OS keeps several jobs in memory at a time and
picks and begins to execute one of the jobs in the
memory.
CPU
I/O
0 5 10 15 20 25 30 35 40 time
Job A Job B
CPU
I/O
0 5 10 15 time
“pure” multiprogramming
Job A and B end at time 20.
Sample problem #1:
Consider a system designed to run only one
user program at a time. Suppose the user is
running a program designed to execute the ff
sequence of instructions:
while (not end of input) {
read from the card reader
process the data
: :
write to the printer
: :
}
Sample problem #1:
I/O devices
User convenience and responsiveness
Adopt technology developed for larger OS often
individuals have sole use of computer and do not need
advance CPU utilization or protection features
May run several different types of OS
E. Parallel Systems
Systems having more than one processor
(multiprocessor systems) in close
communication, sharing the common bus,
clock, memory and peripheral devices.
Increased throughput
Economical
Increased reliability
Graceful degradation
Fail-safe systems
Types of parallel systems
Symmetric multiprocessing model (SMP)
Each processor runs an identical copy of the OS
and these copies communicate with each other
Many processes can run at once without
performance deterioration
Most modern OS support SMP
CPU 1 CPU2 CPU3 CPU4
Types of parallel systems
Master CPU
Slaves CPU
F. Distributed Systems
Distribute computation among several
processors.
F. Distributed Systems
Loosely coupled systems
processors do not share memory or a clock,
instead, each processor has its own local memory.
Requires networking infrastructure
LAN or WAN implementations
May be either client-server of peer-to-peer systems
Resources on each machine are managed by
that machine’s OS and working together to
manage the collective network resources
Reasons for building Distributed
Systems
Resource sharing
Computation Speedup
allows to distribute the computation among various
sites.
Movement of jobs is called “load sharing”
Reliability
Communications
Distributed Systems : Clustered