Csc4320 Chapter 1
Csc4320 Chapter 1
Csc4320 Chapter 1
Bernard Chen
Spring 2007
Outline
1.1 What is OS
1.2 Computer System Organization
1.3 Computer System Architecture
1.4 OS Structure
1.5 OS Operations
1.6-1.8 Process, Memory, Storage management
1.9 Protection and Security
1.10~ Systems
1.1 What is Operating System?
An operating system is a program that
manages the computer hardware.
1. The hardware
2. The operating system
3. The application software
4. The Users
USER View of OS
Ease to use (Home PCs)
OS is a control program
Controls execution of programs to prevent
errors and improper use of the computer
1.2 Computer System
Organization
Basic Organization
Storage Structure
I/O structure
Computer Startup
Bootstrap program is loaded at power
up or reboot
Typically stored in ROM, generally
known as firmware
Initialize all aspects of system
starts execution
1.2.1 Computer System
Organization
1.2.1 Computer System
Organization
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.
Interrupt Timeline
1.2.2 Storage Structure
Main Memory:
Main memory is the only large storage
Advantages:
1. Increase throughput
2. Economy of scale
3. Increase reliability (fault tolerant)
1.3.2 Multiprocessor Systems
Two types of multiprocessor systems:
1. Asymmetric multiprocessing
(master and slave processors)
2. Symmetric multiprocessing
(Shared memory system)
1.3.3 Clustered Systems
Clustered computers share storage and
are closely linked via Local-area
network (LAN) or a faster
interconnection.
1.4 OS Architecture
One of the most important aspect of OS is the
ability to Multiprogramming
User mode
Standard C library
Kernel mode
Write()
system call
Dual Mode Operation
Privileged instructions: some
machine instructions that may cause
harm, can only be executed in kernel
mode.
file
Each medium is controlled by device (i.e., disk drive,
tape drive)
Storage Management
File-System management
Files usually organized into directories
Access control on most systems to determine who
can access what
OS activities include
1. Creating and deleting files and directories
2. Primitives to manipulate files and dirs
3. Mapping files onto secondary storage
4. Backup files onto stable (non-volatile) storage media
Mass 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.
OS activities
1. Free-space management
2. Storage allocation
3. Disk scheduling
4. Tertiary storage includes optical storage, magnetic
tape
5. Varies between WORM (write-once, read-many-
times) and RW (read-write)
Protection and Security