Beruflich Dokumente
Kultur Dokumente
About Me
Jinpeng Wei, Ph.D. Research: computer systems security
High dependable systems Malware detection and mitigation (e.g., rootkits) Cloud computing security Information flow security
COP 5614
Jinpeng Wei
COP 5614
Jinpeng Wei
COP 5614
Jinpeng Wei
COP 5614
Jinpeng Wei
Operating system
Controls and coordinates use of hardware among various applications and users
Application programs
Defines the ways in which the system resources are used to solve the computing problems of the users E.g., word processors, compilers, web browsers, database systems, video games
Users
People, machines, other computers
COP 5614 Jinpeng Wei 7
The one program running at all times on the computer is the kernel
Everything else is either a system program (ships with the operating system) Or an application program
COP 5614 Jinpeng Wei 8
OS is a control program
Controls execution of programs to prevent errors and improper use of the computer
COP 5614
Jinpeng Wei
Introduction
What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Process Management Memory Management Storage Management
COP 5614
Jinpeng Wei
10
Introduction
What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Process Management Memory Management Storage Management
COP 5614
Jinpeng Wei
11
Introduction
What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Process Management Memory Management Storage Management
COP 5614
Jinpeng Wei
12
COP 5614
Jinpeng Wei
13
COP 5614
Jinpeng Wei
14
I/O Operation
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
CPU moves data from/to main memory to/from device controllers local buffers
Device controller informs CPU that it has finished its operation by causing an interrupt
COP 5614
Jinpeng Wei
15
Interrupt Timeline
COP 5614
Jinpeng Wei
16
COP 5614
Jinpeng Wei
17
Storage Structure
Main memory
The only large storage media that the CPU can access directly
Secondary storage
Extension of main memory that provides large nonvolatile storage capacity
COP 5614
Jinpeng Wei
19
Introduction
What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Process Management Memory Management Storage Management
COP 5614
Jinpeng Wei
20
COP 5614
Jinpeng Wei
21
COP 5614
Jinpeng Wei
22
A Dual-Core Design
COP 5614
Jinpeng Wei
23
Introduction
What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Process Management Memory Management Storage Management
COP 5614
Jinpeng Wei
24
COP 5614
Jinpeng Wei
25
Introduction
What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Process Management Memory Management Storage Management
COP 5614
Jinpeng Wei
27
Process Management
A process is a program in execution
A unit of work within the system Program is a passive entity, process is an active entity
COP 5614
Jinpeng Wei
28
Process Management
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
COP 5614
Jinpeng Wei
29
Introduction
What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Process Management Memory Management Storage Management
COP 5614
Jinpeng Wei
30
Memory Management
Process execution needs memory access
All instructions in memory in order to execute All data are in memory before and after processing
Introduction
What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Process Management Memory Management Storage Management
COP 5614
Jinpeng Wei
32
Storage Management
OS provides uniform, logical view of information storage
Abstracts physical properties to logical storage unit file Each medium is controlled by device (e.g., disk drive, tape drive)
Varying properties of access speed, capacity, data-transfer rate, access method (sequential or random)
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 and directories Mapping files onto secondary storage Backup files onto stable (non-volatile) storage media
COP 5614
Jinpeng Wei
33
Storage Management
Mass-storage management
Disks store data that does not fit in main memory or data that must be kept for a long period of time OS activities
Free-space management Storage allocation Disk scheduling
COP 5614
Jinpeng Wei
34
I/O Subsystem
One purpose of OS is to hide peculiarities of hardware devices from the user I/O subsystem responsible for
Memory management of I/O
Buffering: storing data temporarily while it is being transferred Caching: storing parts of data in faster storage for performance Spooling: the overlapping of output of one job with input of other jobs
COP 5614
Jinpeng Wei
35
Introduction
What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Process Management Memory Management Storage Management
COP 5614
Jinpeng Wei
36
Homework
1.1 1.2 1.8 1.22
COP 5614
Jinpeng Wei
37