CH 01
CH 01
Operating System Concepts – 9th Edition 1.3 Silberschatz, Galvin and Gagne ©
What is an Operating System?
Operating System Concepts – 9th Edition 1.4 Silberschatz, Galvin and Gagne ©
Computer System Structure
Operating System Concepts – 9th Edition 1.5 Silberschatz, Galvin and Gagne ©
Four Components of a Computer System
Operating System Concepts – 9th Edition 1.6 Silberschatz, Galvin and Gagne ©
Operating System Definition
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
Operating System Concepts – 9th Edition 1.7 Silberschatz, Galvin and Gagne ©
Computer Startup
bootstrap program is loaded at power-up or reboot
Typically stored in ROM or EPROM, generally known as
firmware
Initializes all aspects of system
Loads operating system kernel and starts execution
Operating System Concepts – 9th Edition 1.8 Silberschatz, Galvin and Gagne ©
Computer-System Operation
I/O devices and the CPU can execute concurrently
Operating System Concepts – 9th Edition 1.9 Silberschatz, Galvin and Gagne ©
Computer-System Architecture
Most systems use a single general-purpose processor (PDAs
through mainframes)
Most systems have special-purpose processors as well
Operating System Concepts – 9th Edition 1.10 Silberschatz, Galvin and Gagne ©
How a Modern Computer Works
Operating System Concepts – 9th Edition 1.11 Silberschatz, Galvin and Gagne ©
Symmetric Multiprocessing Architecture
Operating System Concepts – 9th Edition 1.12 Silberschatz, Galvin and Gagne ©
A Dual-Core Design
Operating System Concepts – 9th Edition 1.13 Silberschatz, Galvin and Gagne ©
Clustered Systems
Like multiprocessor systems, but multiple systems working
together
Usually sharing storage via a storage-area network (SAN)
Provides a high-availability service which survives failures
Asymmetric clustering has one machine in hot-standby
mode
Symmetric clustering has multiple nodes running
applications, monitoring each other
Some clusters are for high-performance computing (HPC)
Applications must be written to use parallelization
Some have distributed lock manager (DLM) to avoid
conflicting operations
Operating System Concepts – 9th Edition 1.14 Silberschatz, Galvin and Gagne ©
Clustered Systems
Operating System Concepts – 9th Edition 1.15 Silberschatz, Galvin and Gagne ©
Operating System Structure
Operating System Concepts – 9th Edition 1.17 Silberschatz, Galvin and Gagne ©
Operating-System Operations
Interrupt driven by hardware
Software error or request creates exception or trap
Division by zero, request for operating system service
Operating System Concepts – 9th Edition 1.18 Silberschatz, Galvin and Gagne ©
Transition from User to Kernel Mode
Timer to prevent infinite loop / process hogging resources
Set interrupt after specific period
Operating system decrements counter
When counter zero generate an interrupt
Set up before scheduling process to regain control or
terminate program that exceeds allotted time
Operating System Concepts – 9th Edition 1.19 Silberschatz, Galvin and Gagne ©
Process Management
A process is a program in execution. It is a unit of work
within the system. Program is a passive entity, process is
an active entity.
Process needs resources to accomplish its task
CPU, memory, I/O, files
Initialization data
Process termination requires reclaim of any reusable
resources
Single-threaded process has one program counter
specifying
location of next instruction to execute
Process executes instructions sequentially, one at a
time, until completion
Multi-threaded process has one program counter per
thread
Typically system has many processes, some user, some
operating
system running concurrently on one or more CPUs
Operating System Concepts – 9th Edition 1.20 Silberschatz, Galvin and Gagne ©
Process Management Activities
The operating system is responsible for the following
activities in connection with process management:
Operating System Concepts – 9th Edition 1.21 Silberschatz, Galvin and Gagne ©
Memory Management
All data in memory before and after processing
Operating System Concepts – 9th Edition 1.22 Silberschatz, Galvin and Gagne ©
Storage Management
Operating System Concepts – 9th Edition 1.24 Silberschatz, Galvin and Gagne ©
Protection and Security
Protection – any mechanism for controlling access of
processes or users to resources defined by the OS
Security – defense of the system against internal and
external attacks
Huge range, including denial-of-service, worms, viruses,
identity theft, theft of service
Systems generally first distinguish among users, to
determine who
can do what
User identities (user IDs, security IDs) include
name and associated number, one per user
User ID then associated with all files, processes of that
user to determine access control
Group identifier (group ID) allows set of users to be
defined and
controls managed, then also associated with each
process, file
Privilege escalation allows
Operating System Concepts – 9th Edition 1.25 user to change to Silberschatz,
effective Galvin and Gagne ©
Computing Environments - Traditional
Operating System Concepts – 9th Edition 1.26 Silberschatz, Galvin and Gagne ©
Computing Environments - Mobile
Operating System Concepts – 9th Edition 1.27 Silberschatz, Galvin and Gagne ©
Computing Environments – Distributed
Distributed
Collection of separate, possibly heterogeneous, systems
networked
together
Network is a communications path, TCP/IP most common
– Local Area Network (LAN)
– Wide Area Network (WAN)
– Metropolitan Area Network (MAN)
– Personal Area Network (PAN)
Network Operating System provides features between systems
across network
Communication scheme allows systems to exchange
messages
Illusion of a single system
Operating System Concepts – 9th Edition 1.28 Silberschatz, Galvin and Gagne ©
Computing Environments – Client-Server
Client-Server Computing
Dumb terminals supplanted by smart PCs
Many systems now servers, responding to requests
generated
by clients
Compute-server system provides an interface to
client to request services (i.e., database)
File-server system provides interface for clients to
store and retrieve files
Operating System Concepts – 9th Edition 1.29 Silberschatz, Galvin and Gagne ©
Computing Environments - Peer-to-Peer
Operating System Concepts – 9th Edition 1.31 Silberschatz, Galvin and Gagne ©
Computing Environments - Virtualization
Operating System Concepts – 9th Edition 1.32 Silberschatz, Galvin and Gagne ©
Computing Environments - Virtualization
Operating System Concepts – 9th Edition 1.33 Silberschatz, Galvin and Gagne ©
Computing Environments – Cloud Computing
Operating System Concepts – 9th Edition 1.35 Silberschatz, Galvin and Gagne ©
Computing Environments – Real-Time Embedded Systems
Operating System Concepts – 9th Edition 1.36 Silberschatz, Galvin and Gagne ©