operating system
operating system
CHAPTER 1: INTRODUCTION
1. What is an Operating System?
2. Computer-System Organization
3. Computer-System Architecture
4. Operating-System Structure
WHAT IS AN OPERATING SYSTEM?
A program that acts as an intermediary between a
user of a computer and the computer hardware
Users
Applications
Database System
Operating System
Hardware
2. COMPUTER-SYSTEM ORGANIZATION
MODERN COMPUTER SYSTEM
IO module interrupt CPU
2.1 COMPUTER-SYSTEM OPERATION
Volatile memory refers to a computer storage that temporarily holds data being used
or processed. Unlike non-volatile memory, which retains data even when power is lost,
volatile memory requires a continuous power supply to maintain its stored
information.
• Disk surface is logically divided into tracks, which are subdivided into
sectors
• The disk controller determines the logical interaction between the
device and the computer
STORAGE STRUCTURE (cont..)
oStorage Hierarchy :
Storage systems organized in hierarchy
• Speed
• Cost
• Volatility
oCaching :
Copying information into faster storage system; main memory can be viewed as a cache for
secondary storage
•Important principle, performed at many levels in a computer (in hardware, operating system,
software)
o After I/O starts, control returns to user program only upon I/O
completion
• Wait instruction idles the CPU until the next interrupt
• Wait loop (contention for memory access)
• At most one I/O request is outstanding at a time, no simultaneous
I/O processing
o After I/O starts, control returns to user program without waiting for I/O
completion
• System call – request to the operating system to allow user to wait
for I/O completion
• Device-status table contains entry for each I/O device indicating its
type, address, and state
• Operating system indexes into I/O device table to determine device
status and to modify table entry to include interrupt
Direct Memory Access Structure :
Two types:
Symmetric Multiprocessing – each processor performs all tasks
a specific task.
SYMMETRIC MULTIPROCESSING ARCHITECTURE
A dual-core with two cores placed on the same chip
3.3 CLUSTERED SYSTEMS
Timesharing systems:
Logical extension of batch systems -- CPU switches jobs so
frequently that users can interact with each job while it is running,
creating interactive computing
4.2 TIMESHARING SYSTEMS
Timesharing is also referred to as multitasking.