CH 1
CH 1
Chapter 1: Introduction
Operating System Concepts – 10h Edition Silberschatz, Galvin and Gagne ©2018
Course Objectives
Operating System Concepts – 10th Edition 1.2 Silberschatz, Galvin and Gagne ©2018
Course Syllabus
• Introduction.
• Operating-System Structures.
• Processes.
• Threads.
• CPU Scheduling.
• Process Synchronization.
• Deadlocks.
• Main Memory Management.
Operating System Concepts – 10th Edition 1.3 Silberschatz, Galvin and Gagne ©2018
Chapter 1: Outline
• Introduction.
• Computer System Structure.
• What is an Operating System?
• What Operating Systems Do?
• Computer System Organization.
• Storage Structure.
• Multiprocessing Architecture.
• Operating-System Operations.
• Protection and Security.
• Computing Environments.
Operating System Concepts – 10th Edition 1.4 Silberschatz, Galvin and Gagne ©2018
Introduction
Accepts Produces
data Processing information
(input) (output)
Page 4 5
Operating System Concepts – 10th Edition 1.5 Silberschatz, Galvin and Gagne ©2018
Information Technology
Operating System Concepts – 10th Edition 1.6 Silberschatz, Galvin and Gagne ©2018
TWO CATEGORIES OF SOFTWARE
1. Applications software
2. Support software
Operating System Concepts – 10th Edition 1.7 Silberschatz, Galvin and Gagne ©2018
Computer System Structure (1/2)
Operating System Concepts – 10th Edition 1.8 Silberschatz, Galvin and Gagne ©2018
Computer System Structure (2/2)
Operating System Concepts – 10th Edition 1.9 Silberschatz, Galvin and Gagne ©2018
What is an Operating System? (1/2)
Operating System Concepts – 10th Edition 1.10 Silberschatz, Galvin and Gagne ©2018
What is an Operating System? (2/2)
Operating System Concepts – 10th Edition 1.11 Silberschatz, Galvin and Gagne ©2018
What Operating Systems Do? (1/4)
User View
• Users want convenience, ease of use and good
performance.
➢ Don’t care about resource utilization.
Operating System Concepts – 10th Edition 1.12 Silberschatz, Galvin and Gagne ©2018
What Operating Systems Do? (2/4)
System View
• From the computer’s point of view, the operating system
is the program most intimately involved with the
hardware. In this context, we can view an operating
system as a resource allocator.
• A computer system has many resources that may be
required to solve a problem: CPU time, memory space,
file-storage space, I/O devices, and so on. The operating
system acts as the manager of these resources.
Operating System Concepts – 10th Edition 1.13 Silberschatz, Galvin and Gagne ©2018
What Operating Systems Do? (3/4)
• 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 – 10th Edition 1.14 Silberschatz, Galvin and Gagne ©2018
What Operating Systems Do? (4/4)
Operating System Concepts – 10th Edition 1.15 Silberschatz, Galvin and Gagne ©2018
Computer System Organization (1/3)
Operating System Concepts – 10th Edition 1.16 Silberschatz, Galvin and Gagne ©2018
Computer System Organization (2/3)
Operating System Concepts – 10th Edition 1.17 Silberschatz, Galvin and Gagne ©2018
Computer System Organization (2/3)
Interrupts (1/2)
• The occurrence of an event is usually signaled by an
interrupt from either the hardware or the software.
➢ Hardware may trigger an interrupt at any time by sending a
signal to the CPU, usually by way of the system bus.
➢ Software may trigger an interrupt by executing a special
operation called a system call (also called a monitor call).
• Interrupts are an important part of a computer
architecture. Each computer design has its own interrupt
mechanism, but several functions are common.
Operating System Concepts – 10th Edition 1.20 Silberschatz, Galvin and Gagne ©2018
Computer System Organization (3/3)
Interrupts (2/2)
• Interrupt transfers control to the interrupt service routine
generally, through the interrupt vector, which contains
the addresses of all the service routines.
• Interrupt architecture must save the address of the
interrupted instruction.
• A trap or exception is a software-generated interrupt
caused either by an error or a user request.
• An operating system is interrupt driven.
Operating System Concepts – 10th Edition 1.21 Silberschatz, Galvin and Gagne ©2018
Storage Structure (1/4)
The basic unit of computer storage is the bit. A bit can contain one of two
Review values, 0 and 1. All other storage in a computer is based on collections of bits.
Given enough bits, it is amazing how many things a computer can represent:
numbers, letters, images, movies, sounds, documents, and programs, to name
a few. A byte is 8 bits, and on most computers it is the smallest convenient
chunk of storage. For example, most computers don’t have an instruction to
move a bit but do have one to move a byte. A less common term is word,
which is a given computer architecture’s native unit of data. A word is made up
of one or more bytes. For example, a computer that has 64-bit registers and 64-
bit memory addressing typically has 64-bit (8-byte) words. A computer executes
many operations in its native word size rather than a byte at a time.
Computer manufacturers often round off these numbers and say that a
megabyte is 1 million bytes and a gigabyte is 1 billion bytes. Networking
measurements are an exception to this general rule; they are given in bits
(because networks move data a bit at a time).
Operating System Concepts – 10th Edition 1.22 Silberschatz, Galvin and Gagne ©2018
Storage Structure (2/4)
Operating System Concepts – 10th Edition 1.23 Silberschatz, Galvin and Gagne ©2018
Storage Structure (3/4)
Operating System Concepts – 10th Edition 1.24 Silberschatz, Galvin and Gagne ©2018
Storage Structure (4/4)
Operating System Concepts – 10th Edition 1.25 Silberschatz, Galvin and Gagne ©2018
How a Modern Computer Works
Operating System Concepts – 10th Edition 1.26 Silberschatz, Galvin and Gagne ©2018
Multiprocessing Architecture (1/2)
Operating System Concepts – 10th Edition 1.27 Silberschatz, Galvin and Gagne ©2018
Multiprocessing Architecture (2/2)
Operating System Concepts – 10th Edition 1.28 Silberschatz, Galvin and Gagne ©2018
Multiprocessing Architecture (2/2)
Operating System Concepts – 10th Edition 1.29 Silberschatz, Galvin and Gagne ©2018
A Dual-Core Design
Operating System Concepts – 10th Edition 1.30 Silberschatz, Galvin and Gagne ©2018
Operating-System Structure (1/3)
Operating System Concepts – 10th Edition 1.31 Silberschatz, Galvin and Gagne ©2018
Operating-System Structure (2/3)
Operating System Concepts – 10th Edition 1.32 Silberschatz, Galvin and Gagne ©2018
Operating-System Structure (3/3)
➢ If processes don’t fit in memory, swapping moves them in and out to run
➢ Virtual memory allows execution of processes not completely in
memory
Operating System Concepts – 10th Edition 1.33 Silberschatz, Galvin and Gagne ©2018
Operating-System Operations (1/4)
Operating System Concepts – 10th Edition 1.34 Silberschatz, Galvin and Gagne ©2018
Operating-System Operations (2/4)
Operating System Concepts – 10th Edition 1.35 Silberschatz, Galvin and Gagne ©2018
Operating-System Operations (3/4)
Operating System Concepts – 10th Edition 1.36 Silberschatz, Galvin and Gagne ©2018
Operating-System Operations (4/4)
Operating System Concepts – 10th Edition 1.37 Silberschatz, Galvin and Gagne ©2018
Levels of Storage
Operating System Concepts – 10th Edition 1.38 Silberschatz, Galvin and Gagne ©2018
Protection and Security
Operating System Concepts – 10th Edition 1.39 Silberschatz, Galvin and Gagne ©2018
Computing Environments (1/9)
Operating System Concepts – 10th Edition 1.40 Silberschatz, Galvin and Gagne ©2018
Computing Environments (2/9)
Operating System Concepts – 10th Edition 1.41 Silberschatz, Galvin and Gagne ©2018
Computing Environments (3/9)
• Client-Server Computing
Operating System Concepts – 10th Edition 1.42 Silberschatz, Galvin and Gagne ©2018
Computing Environments (4/9)
• Peer-to-Peer
Operating System Concepts – 10th Edition 1.43 Silberschatz, Galvin and Gagne ©2018
Computing Environments (5/9)
Operating System Concepts – 10th Edition 1.44 Silberschatz, Galvin and Gagne ©2018
Computing Environments (6/9)
Operating System Concepts – 10th Edition 1.45 Silberschatz, Galvin and Gagne ©2018
Computing Environments (7/9)
• VMware Architecture
Operating System Concepts – 10th Edition 1.46 Silberschatz, Galvin and Gagne ©2018
Computing Environments (8/9)
Operating System Concepts – 10th Edition 1.47 Silberschatz, Galvin and Gagne ©2018
Computing Environments (9/9)
Operating System Concepts – 10th Edition 1.48 Silberschatz, Galvin and Gagne ©2018
End of Chapter 1
Operating System Concepts – 10h Edition Silberschatz, Galvin and Gagne ©2018