lecture1_introduction
lecture1_introduction
Lecture 1
Introduction
(Chapter 1 of Textbook)
Dr. İbrahim Körpeoğlu
http://www.cs.bilkent.edu.tr/~korpe
• The slides here are adapted/modified from the textbook and its slides:
Operating System Concepts, Silberschatz et al., 7th & 8th editions,
Wiley.
REFERENCES
• Operating System Concepts, 7th and 8th editions, Silberschatz et al.
Wiley.
• Modern Operating Systems, Andrew S. Tanenbaum, 3rd edition, 2009.
• OS is a resource allocator
– Manages all resources
– Decides between conflicting requests for efficient and fair resource
use
• OS is a control program
– Controls execution of programs to prevent errors and improper use
of the computer
– I/O is accessed via the operating system
system programs
kernel
application
programs
OS CD
system/application programs
Kernel
hardware
• 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
hardware interrupt
CPU RAM
store
Registers
CPU
Main Memory
DMA
Device Controller Transfer
Controller
caching
cache
replacement policy?
caching
PC
PC
SAN
PC PC Disk Storage
Processes
CPU Scheduling Memory Management
Files Main
CPU
Memory
Virtual Memory
File System Management
on
Input/Output Control/management
cti
ote
Storage Management Device Drivers
Pr
Disk
Devices Devices Devices
max
stack
a process Physical
(running Main Memory
application) data RAM
Mapping
(by OS)
a process has an
instructions
address space
(set of logical addresses
0
processes is using)
address space
• File-System management
– 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/dirs; Mapping files onto secondary storage
• Disk store data that does not fit into memory and to be stored for long
time; Proper management is of central importance
• Entire speed of computer operation may depend on the disk
subsystem and its algorithms
• OS activities
– Free-space management; Storage allocation
– Disk scheduling
Main Memory
Buffering
Caching….
I/Os sub-system of Kernel
uniform driver interface
Device Derivers
• Traditionally
mainframe computer
dumb terminals
• Client-Server Computing
– Dumb terminals replaced by smart PCs
– Many systems now servers, responding to requests generated by clients
• Compute-server provides an interface to client to request services
(i.e. database)
• File-server provides interface for clients to store and retrieve files
Web HTTP
User Web server
browser
pages