Chapter 2: Operating-System Structures
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Chapter 2: Operating-System Structures
2.2
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Objectives
2.3
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Services
2.4
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Services
2.5
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Services (Cont.)
2.6
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Services (Cont.)
2.7
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
A View of Operating System Services
Figure: A view of operating system services.
2.8
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
User Operating System Interface
2.9
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
User Operating System Interface
Command Interpreters:
2.10
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
User Operating System Interface
2.11
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Bourne Shell Command Interpreter
2.12
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
User Operating System Interface - GUI
Graphical User Interfaces:
2.13
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Touchscreen Interfaces
2.14
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
The Mac OS X GUI
2.15
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
User Operating System Interface - GUI
Choice of Interface
2.16
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Calls
2.17
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Calls
2.18
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Calls
2.19
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Calls
2.20
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Example of System Calls
Figure: Example of how system calls are used.
2.21
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Calls
2.22
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Example of Standard API
2.23
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Calls
2.24
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Call Implementation
2.25
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
API – System Call – OS Relationship
Figure: The handling of a user application invoking the open() system call.
2.26
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Call Parameter Passing
2.27
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Parameter Passing via Table
Figure: Passing of parameters as a table.
2.28
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of System Calls
2.29
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of System Calls
Process Control
2.30
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of System Calls
Process Control
2.31
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of System Calls
File Management
2.32
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of System Calls
File Management
Device Management
2.33
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of System Calls
Device Management
Device management
2.34
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of System Calls
Information Maintenance
2.35
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of System Calls
2.36
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of System Calls
Communication
Communications
2.37
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of System Calls
Protection
2.38
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Types of System Calls (Cont.)
2.39
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Examples of Windows and Unix System Calls
2.40
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Standard C Library Example
2.41
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Example: MS-DOS
At system startup running a program
2.42
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Example: FreeBSD
2.43
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Programs
2.44
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Programs
2.45
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Programs (Cont.)
2.46
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Programs (Cont.)
Application programs
2.47
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Design and Implementation
2.48
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Design and Implementation (Cont.)
Mechanisms and Policies
Policy: What will be done? �Mechanism: How to do it?
2.49
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Design and Implementation (Cont.)
Mechanisms and Policies
Policy: What will be done? �Mechanism: How to do it?
2.50
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Design and Implementation (Cont.)
Mechanisms and Policies
2.51
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Implementation
2.52
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Implementation
2.53
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Structure
Simple structure – MS-DOS
2.54
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Simple Structure -- MS-DOS
Figure 2.11 MS-DOS layer structure.
2.55
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Structure
2.56
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Non Simple Structure -- UNIX
2.57
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Traditional UNIX System Structure
Beyond simple but not fully layered
2.58
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Layered Approach
2.59
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Layered Approach
2.60
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Layered Approach
2.61
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Layered Approach
2.62
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Microkernel System Structure
2.63
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Figure: Architecture of a typical microkernel.
2.64
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Microkernel System Structure
2.65
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Modules
2.66
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Solaris Modular Approach
2.67
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Modules
1. Scheduling classes
2. File systems
3. Loadable system calls
4. Executable formats
5. STREAMS modules
6. Miscellaneous
7. Device and bus drivers
2.68
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Hybrid Systems
2.69
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Mac OS X Structure
2.70
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
iOS
2.71
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Android
2.72
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Android Architecture
2.73
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Generation
2.74
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Generation
2.75
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Operating System Generation
2.76
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Boot
2.77
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
System Boot
2.78
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
End of Chapter 2
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition