Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Operating System Concepts – 7th Edition, Jan 14, 2005 2.2 Silberschatz, Galvin and Gagne ©2005
Objectives
Operating System Concepts – 7th Edition, Jan 14, 2005 2.3 Silberschatz, Galvin and Gagne ©2005
Operating System Services
Operating System Concepts – 7th Edition, Jan 14, 2005 2.4 Silberschatz, Galvin and Gagne ©2005
Operating System Services (Cont.)
Operating System Concepts – 7th Edition, Jan 14, 2005 2.5 Silberschatz, Galvin and Gagne ©2005
Operating System Services (Cont.)
Another set of OS functions exists for ensuring the efficient operation of the
system itself via resource sharing
z Resource allocation - When multiple users or multiple jobs running
concurrently, resources must be allocated to each of them
Many types of resources - Some (such as CPU cycles, main memory,
and file storage) may have special allocation code, others (such as I/O
devices) may have general request and release code.
z Accounting - To keep track of which users use how much and what kinds
of computer resources
z Protection and security - The owners of information stored in a multi-user
or networked computer system may want to control use of that information,
concurrent processes should not interfere with each other
Protection involves ensuring that all access to system resources is
controlled
Security of the system from outsiders requires user authentication,
extends to defending external I/O devices from invalid access attempts
If a system is to be protected and secure, precautions must be
instituted throughout it. A chain is only as strong as its weakest link.
Operating System Concepts – 7th Edition, Jan 14, 2005 2.6 Silberschatz, Galvin and Gagne ©2005
User Operating System Interface - CLI
Operating System Concepts – 7th Edition, Jan 14, 2005 2.7 Silberschatz, Galvin and Gagne ©2005
User Operating System Interface - GUI
Operating System Concepts – 7th Edition, Jan 14, 2005 2.8 Silberschatz, Galvin and Gagne ©2005
System Calls
Operating System Concepts – 7th Edition, Jan 14, 2005 2.9 Silberschatz, Galvin and Gagne ©2005
Example of System Calls
System call sequence to copy the contents of one file to another file
Operating System Concepts – 7th Edition, Jan 14, 2005 2.10 Silberschatz, Galvin and Gagne ©2005
System Call Implementation
Operating System Concepts – 7th Edition, Jan 14, 2005 2.11 Silberschatz, Galvin and Gagne ©2005
API – System Call – OS Relationship
Operating System Concepts – 7th Edition, Jan 14, 2005 2.12 Silberschatz, Galvin and Gagne ©2005
System Call Parameter Passing
Operating System Concepts – 7th Edition, Jan 14, 2005 2.13 Silberschatz, Galvin and Gagne ©2005
Parameter Passing via Table
Operating System Concepts – 7th Edition, Jan 14, 2005 2.14 Silberschatz, Galvin and Gagne ©2005
Standard C Library Example
C program invoking printf() library call, which calls write() system call
Operating System Concepts – 7th Edition, Jan 14, 2005 2.15 Silberschatz, Galvin and Gagne ©2005
Types of System Calls
Operating System Concepts – 7th Edition, Jan 14, 2005 2.16 Silberschatz, Galvin and Gagne ©2005
Process control
MS-DOS execution
Operating System Concepts – 7th Edition, Jan 14, 2005 2.17 Silberschatz, Galvin and Gagne ©2005
FreeBSD Running Multiple Programs
Operating System Concepts – 7th Edition, Jan 14, 2005 2.18 Silberschatz, Galvin and Gagne ©2005
System Programs
Operating System Concepts – 7th Edition, Jan 14, 2005 2.19 Silberschatz, Galvin and Gagne ©2005
System Programs
Operating System Concepts – 7th Edition, Jan 14, 2005 2.20 Silberschatz, Galvin and Gagne ©2005
System Programs (cont’d)
File modification
z Text editors to create and modify files
z Special commands to search contents of files or perform
transformations of the text
Programming-language support - Compilers, assemblers, debuggers and
interpreters sometimes provided
Program loading and execution- Absolute loaders, relocatable loaders,
linkage editors, and overlay-loaders, debugging systems for higher-level
and machine language
Communications - Provide the mechanism for creating virtual connections
among processes, users, and computer systems
z Allow users to send messages to one another’s screens, browse web
pages, send electronic-mail messages, log in remotely, transfer files
from one machine to another
In addition to sys program, programs hat are useful in solving common
problems or performing common tasks are supplied( browsers, databases)
Operating System Concepts – 7th Edition, Jan 14, 2005 2.21 Silberschatz, Galvin and Gagne ©2005
Operating System Design and Implementation
Operating System Concepts – 7th Edition, Jan 14, 2005 2.22 Silberschatz, Galvin and Gagne ©2005
Operating System Design and Implementation (Cont.)
Operating System Concepts – 7th Edition, Jan 14, 2005 2.23 Silberschatz, Galvin and Gagne ©2005
Operating System Structure
Operating System Concepts – 7th Edition, Jan 14, 2005 2.24 Silberschatz, Galvin and Gagne ©2005
Simple Structure
Operating System Concepts – 7th Edition, Jan 14, 2005 2.25 Silberschatz, Galvin and Gagne ©2005
MS-DOS Layer Structure
Operating System Concepts – 7th Edition, Jan 14, 2005 2.26 Silberschatz, Galvin and Gagne ©2005
UNIX
Operating System Concepts – 7th Edition, Jan 14, 2005 2.27 Silberschatz, Galvin and Gagne ©2005
UNIX System Structure
Operating System Concepts – 7th Edition, Jan 14, 2005 2.28 Silberschatz, Galvin and Gagne ©2005
Layered Approach
Operating System Concepts – 7th Edition, Jan 14, 2005 2.29 Silberschatz, Galvin and Gagne ©2005
Layered Operating System
Operating System Concepts – 7th Edition, Jan 14, 2005 2.30 Silberschatz, Galvin and Gagne ©2005
Microkernel System Structure
Moves as much from the kernel into “user” space (system or user-
level programs)
Communication takes place between user modules using message
passing
Benefits:
z Easier to extend a microkernel
z Easier to port the operating system to new architectures
z More reliable (less code is running in kernel mode)
z More secure since most services are running in user mode
Detriments:
z Performance overhead of user space to kernel space
communication
Operating System Concepts – 7th Edition, Jan 14, 2005 2.31 Silberschatz, Galvin and Gagne ©2005
Modules
Operating System Concepts – 7th Edition, Jan 14, 2005 2.32 Silberschatz, Galvin and Gagne ©2005
Virtual Machines
Operating System Concepts – 7th Edition, Jan 14, 2005 2.33 Silberschatz, Galvin and Gagne ©2005
Virtual Machines (Cont.)
Operating System Concepts – 7th Edition, Jan 14, 2005 2.34 Silberschatz, Galvin and Gagne ©2005
Virtual Machines (Cont.)
Operating System Concepts – 7th Edition, Jan 14, 2005 2.35 Silberschatz, Galvin and Gagne ©2005
Virtual Machines (Cont.)
Operating System Concepts – 7th Edition, Jan 14, 2005 2.36 Silberschatz, Galvin and Gagne ©2005
Operating System Generation
Operating System Concepts – 7th Edition, Jan 14, 2005 2.37 Silberschatz, Galvin and Gagne ©2005
System Boot
Operating System Concepts – 7th Edition, Jan 14, 2005 2.38 Silberschatz, Galvin and Gagne ©2005
End of Chapter 2