Operating-System Structures

References:

  1. Abraham Silberschatz, Greg Gagne, and Peter Baer Galvin, "Operating System Concepts, Ninth Edition ", Chapter 2

This chapter deals with how operating systems are structured and organized. Different design issues and choices are examined and compared, and the basic structure of several popular OSes are presented.

2.1 Operating-System Services

OSes provide environments in which programs run, and services for the users of the system, including:

Other systems aid in the efficient operation of the OS itself:

2.2 User Operating-System Interface

2.2.1 Command Interpreter

2.2.2 Graphical User Interface, GUI

2.2.3 Choice of interface ( new section, same content )

Figure 2.4

2.3 System Calls


Figure 2.5


This sidebar was a Windows system call in the 8th edition


Figure 2.6


Figure 2.7

2.4 Types of System Calls

Six major categories, as outlined in Figure 2.8 and the following six subsections:


( Sixth type, protection, not shown here but described below. )


Unnumbered side bar

2.4.1 Process Control


Figure 2.9


Figure 2.10

2.4.2 File Management

2.4.3 Device Management

2.4.4 Information Maintenance

2.4.5 Communication

2.4.6 Protection

2.5 System Programs

2.6 Operating-System Design and Implementation

2.6.1 Design Goals

2.6.2 Mechanisms and Policies

2.6.3 Implementation

2.7 Operating-System Structure

For efficient performance and implementation an OS should be partitioned into separate subsystems, each with carefully defined tasks, inputs, outputs, and performance characteristics. These subsystems can then be arranged in various architectural configurations:

2.7.1 Simple Structure

When DOS was originally written its developers had no idea how big and important it would eventually become. It was written by a few programmers in a relatively short amount of time, without the benefit of modern software engineering techniques, and then gradually grew over time to exceed its original expectations. It does not break the system into subsystems, and has no distinction between user and kernel modes, allowing all programs direct access to the underlying hardware. ( Note that user versus kernel mode was not supported by the 8088 chip set anyway, so that really wasn't an option back then. )


Figure 2.11

The original UNIX OS used a simple layered approach, but almost all the OS was in one big layer, not really breaking the OS down into layered subsystems:


Figure 2.12

2.7.2 Layered Approach


Figure 2.13

2.7.3 Microkernels

2.7.4 Modules


Figure 2.15

2.7.5 Hybrid Systems

2.7.5.1 Mac OS X

2.7.5.2 iOS

2.7.5.3 Android

 

2.8 Operating-System Debugging ( was 2.9 )

2.8.1 Failure Analysis

2.8.2 Performance Tuning

2.8.3 DTrace


Figure 2.20

2.9 Operating-System Generation ( was 2.10 )

2.10 System Boot ( was 2.11 )

The general approach when most computers boot up goes something like this:

2.11 Summary ( was 2.12 )


Old 2.8 Virtual Machines ( Moved elsewhere in the 9th edition. )


Figure 2.17

2.8.1 History

2.8.2 Benefits

2.8.3 Simulation

2.8.4 Para-virtualization

2.8.5 Implementation

2.8.6 Examples

2.8.6.1 VMware


Figure 2.19

2.8.6.2 The Java Virtual Machine


Figure 2.20


Figure 2.21