CH 2
CH 2
Operating System Concepts – 10h Edition Silberschatz, Galvin and Gagne ©2018
Outline
Operating System Concepts – 10th Edition 2.2 Silberschatz, Galvin and Gagne ©2018
Operating System Services (1/4)
Operating System Concepts – 10th Edition 2.3 Silberschatz, Galvin and Gagne ©2018
Operating System Services (2/4)
Operating System Concepts – 10th Edition 2.4 Silberschatz, Galvin and Gagne ©2018
Operating System Services (2/4)
Operating System Concepts – 10th Edition 2.5 Silberschatz, Galvin and Gagne ©2018
Operating System Services (2/4)
Operating System Concepts – 10th Edition 2.6 Silberschatz, Galvin and Gagne ©2018
Operating System Services (3/4)
Operating System Concepts – 10th Edition 2.7 Silberschatz, Galvin and Gagne ©2018
Operating System Services (3/4)
Operating System Concepts – 10th Edition 2.8 Silberschatz, Galvin and Gagne ©2018
Operating System Services (4/4)
Operating System Concepts – 10th Edition 2.9 Silberschatz, Galvin and Gagne ©2018
User Operating System Interface (1/5)
Operating System Concepts – 10th Edition 2.10 Silberschatz, Galvin and Gagne ©2018
User Operating System Interface (2/5)
Operating System Concepts – 10th Edition 2.11 Silberschatz, Galvin and Gagne ©2018
User Operating System Interface (3/5)
Operating System Concepts – 10th Edition 2.12 Silberschatz, Galvin and Gagne ©2018
The Mac OS X GUI
Operating System Concepts – 10th Edition 2.13 Silberschatz, Galvin and Gagne ©2018
User Operating System Interface (4/5)
• Touchscreen Interfaces
• Touchscreen devices require new interfaces.
➢ Mouse not possible or not desired.
➢ Actions and selection based on gestures.
• Voice commands.
Operating System Concepts – 10th Edition 2.14 Silberschatz, Galvin and Gagne ©2018
System Calls (1/6)
Operating System Concepts – 10th Edition 2.15 Silberschatz, Galvin and Gagne ©2018
System Calls (2/6)
Operating System Concepts – 10th Edition 2.16 Silberschatz, Galvin and Gagne ©2018
System Calls (3/6)
Operating System Concepts – 10th Edition 2.17 Silberschatz, Galvin and Gagne ©2018
System Calls (4/6)
Operating System Concepts – 10th Edition 2.18 Silberschatz, Galvin and Gagne ©2018
System Calls (5/6)
Operating System Concepts – 10th Edition 2.19 Silberschatz, Galvin and Gagne ©2018
System Calls (6/6)
Operating System Concepts – 10th Edition 2.20 Silberschatz, Galvin and Gagne ©2018
Types of System Calls (1/6)
1. Process control
➢ create process, terminate process
➢ end, abort
➢ load, execute
➢ get process attributes, set process attributes
➢ wait for time
➢ wait event, signal event
➢ allocate and free memory
➢ Debugger for determining bugs, single step execution
➢ Locks for managing access to shared data between processes
Operating System Concepts – 10th Edition 2.21 Silberschatz, Galvin and Gagne ©2018
Types of System Calls (2/6)
2. File management
➢ create file, delete file
➢ open, close file
➢ read, write, reposition
➢ get and set file attributes
Operating System Concepts – 10th Edition 2.22 Silberschatz, Galvin and Gagne ©2018
Types of System Calls (3/6)
3. Device management
➢ request device, release device
➢ read, write, reposition
➢ get device attributes, set device attributes
➢ logically attach or detach devices
Operating System Concepts – 10th Edition 2.23 Silberschatz, Galvin and Gagne ©2018
Types of System Calls (4/6)
4. Information maintenance
➢ get time or date, set time or date
➢ get system data, set system data
➢ get and set process, file, or device attributes
Operating System Concepts – 10th Edition 2.24 Silberschatz, Galvin and Gagne ©2018
Types of System Calls (5/6)
5. Communications
➢ create, delete communication connection
➢ send, receive messages if message passing model to host name
or process name
➢ From client to server
➢ Shared-memory model create and gain access to memory
regions
➢ transfer status information
➢ attach and detach remote devices
Operating System Concepts – 10th Edition 2.25 Silberschatz, Galvin and Gagne ©2018
Types of System Calls (6/6)
6. Protection
➢ Control access to resources
➢ Get and set permissions
➢ Allow and deny user access
Operating System Concepts – 10th Edition 2.26 Silberschatz, Galvin and Gagne ©2018
System Programs (1/5)
Operating System Concepts – 10th Edition 2.27 Silberschatz, Galvin and Gagne ©2018
System Programs (2/5)
Operating System Concepts – 10th Edition 2.28 Silberschatz, Galvin and Gagne ©2018
System Programs (3/5)
• File modification
➢ Text editors to create and modify files.
➢ Special commands to search contents of files or perform
transformations of the text.
Operating System Concepts – 10th Edition 2.29 Silberschatz, Galvin and Gagne ©2018
System Programs (4/5)
Operating System Concepts – 10th Edition 2.30 Silberschatz, Galvin and Gagne ©2018
System Programs (5/5)
• Background Services
➢ Launch at boot time.
• Some for system startup, then terminate.
• Some from system boot to shutdown.
➢ Provide facilities like disk checking, process scheduling, error
logging, printing.
• Application programs
➢ Don’t pertain to system.
➢ Run by users.
➢ Not typically considered part of OS.
Operating System Concepts – 10th Edition 2.31 Silberschatz, Galvin and Gagne ©2018
OS Design and Implementation (1/3)
Operating System Concepts – 10th Edition 2.32 Silberschatz, Galvin and Gagne ©2018
OS Design and Implementation (2/3)
Operating System Concepts – 10th Edition 2.33 Silberschatz, Galvin and Gagne ©2018
OS Design and Implementation (3/3)
• Much variation
➢ Early OSes in assembly language.
➢ Then system programming languages like Algol, PL/1
➢ Now C, C++
Operating System Concepts – 10th Edition 2.34 Silberschatz, Galvin and Gagne ©2018
Operating System Structure (1/8)
Operating System Concepts – 10th Edition 2.35 Silberschatz, Galvin and Gagne ©2018
Operating System Structure (2/8)
➢ Microkernel – Mach
Operating System Concepts – 10th Edition 2.36 Silberschatz, Galvin and Gagne ©2018
Operating System Structure (3/8)
Operating System Concepts – 10th Edition 2.37 Silberschatz, Galvin and Gagne ©2018
Operating System Structure (4/8)
• The kernel
➢ Consists of everything below the system-call interface and
above the physical hardware.
➢ Provides the file system, CPU scheduling, memory
management, and other operating-system functions; a large
number of functions for one level.
Operating System Concepts – 10th Edition 2.38 Silberschatz, Galvin and Gagne ©2018
Operating System Structure (5/8)
Operating System Concepts – 10th Edition 2.39 Silberschatz, Galvin and Gagne ©2018
Operating System Structure (6/8)
Layered Approach
Operating System Concepts – 10th Edition 2.40 Silberschatz, Galvin and Gagne ©2018
Operating System Structure (7/8)
Operating System Concepts – 10th Edition 2.41 Silberschatz, Galvin and Gagne ©2018
Operating System Structure (7/8)
Operating System Concepts – 10th Edition 2.42 Silberschatz, Galvin and Gagne ©2018
Operating System Structure (8/8)
messages messages
microkernel
hardware
Operating System Concepts – 10th Edition 2.43 Silberschatz, Galvin and Gagne ©2018
End of Chapter 2
Operating System Concepts – 10th Edition Silberschatz, Galvin and Gagne ©2018