CH 1
CH 1
OBJECTIVES
System view
OS is a resource allocator
Manages all resources
Decides between conflicting requests for efficient and fair resource use
computer system has many resources that may be required to
solve a problem: CPU time, memory space, file-storage space, I/0
devices, and so on. The operating system acts as the manager of
these resources
OS is a control program
Controls execution of programs to prevent errors and improper use of
the computer
It is especially concerned with the operation and control of I/O devices.
Operating systems exist because they offer a
reasonable way to solve the problem of creating a
usable computing system.
The fundamental goal of computer systems is to
execute user programs and to make solving user
problems easier.
Toward this goal, computer hardware is constructed.
Since bare hardware alone is not particularly easy to
use, application programs are developed.
These programs require certain common operations,
such as those controlling the II 0 devices. The
common functions of controlling and allocating
resources are then brought together into one piece
of software: the operating system.
OPERATING SYSTEM DEFINITION (CONT.)
Computer-system operation
One or more CPUs, device controllers connect
through common bus providing access to shared
memory
Concurrent execution of CPUs and devices
competing for memory cycles
STORAGE-DEVICE HIERARCHY
OPERATING SYSTEM STRUCTURE
synchronization
Providing mechanisms for process
communication
Providing mechanisms for deadlock handling
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
Memory management activities
Keeping track of which parts of memory are currently
being used and by whom
Deciding which processes (or parts thereof) and data to
move into and out of memory
Allocating and deallocating memory space as needed
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
A file is a collection of related information defined by its
creator. Commonly, files represent programs (both source and
object forms) and data.
Data files may be numeric, alphabetic, alphanumeric, or
binary. Files may be free-form (for example, text files), or they
may be formatted rigidly (for example, fixed fields).
Clearly, the concept of a file is an extremely general one.
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 that must be kept for a “long”
period of time
Proper management is of central importance
Entire speed of computer operation hinges on disk
subsystem and its algorithms
OS activities
Free-space management
Storage allocation
Disk scheduling
Some storage need not be fast
Tertiary storage includes optical storage, magnetic tape
Still must be managed – by OS or applications
Varies between WORM (write-once, read-many-times) and
RW (read-write)
PERFORMANCE OF VARIOUS LEVELS OF
STORAGE