Module 1 - Operating-System Services
Module 1 - Operating-System Services
26/12/2021
College of Computing and Informatics
OPERATING SYSTEMS
Module 1
Chapter 1: Introduction
Chapter 2: Operating-System Services
CONTENTS
What Operating System Do
Resource Management
Virtualization
Computing Environments
Operating-System Services
• 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
CACHING
• Important principle, performed at many levels in a computer (in
hardware, operating system, software)
• Information in use copied from slower to faster storage temporarily
• Faster storage (cache) checked first to determine if information is
there
• If it is, information used directly from the cache (fast)
• If not, data copied to cache and used there
• Cache smaller than storage being cached
• Cache management important design problem
• Cache size and replacement policy
CHARACTERISTICS OF VARIOUS TYPES OF STORAGE
• File management - Create, delete, copy, rename, print, dump, list, and generally
manipulate files and directories
• Status information
• Some ask the system for info - date, time, amount of available memory, disk space,
number of users
• Others provide detailed performance, logging, and debugging information
• Typically, these programs format and print the output to the terminal or other
output devices
• Some systems implement a registry - used to store and retrieve configuration
SYSTEM SERVICES (CONT.)
• File modification
• Text editors to create and modify files
• 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
• 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
SYSTEM SERVICES (CONT.)
• 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
• Run in user context not kernel context
• Known as services, subsystems, daemons
• Application programs
• Don’t pertain to system
• Run by users
• Not typically considered part of OS
WHY APPLICATIONS ARE OPERATING SYSTEM SPECIFIC
• Apps compiled on one system usually not executable on other operating systems
• Each operating system provides its own unique system calls
• Own file formats, etc.
• Apps can be multi-operating system
• Written in interpreted language like Python, Ruby, and interpreter available on
multiple operating systems
• App written in language that includes a VM containing the running app (like Java)
• Use standard language (like C), compile separately on each operating system to run
on each
• Application Binary Interface (ABI) is architecture equivalent of API, defines how
different components of binary code can interface for a given operating system on
a given architecture, CPU, etc.
Required Reading
1. Chapter 1: Introduction (Operating System Concepts by
Silberschatz, Abraham, et al. 10th ed., ISBN: 978-1-119-32091-3,
2018)
2. Chapter 2: Operating-System Structures (Operating System
Concepts by Silberschatz, Abraham, et al. 10th ed., ISBN: 978-1-
119-32091-3, 2018)
Recommended Reading
1. Chapter 1 (Modern Operating Systems by Andrew S. Tanenbaum and
Herbert Bos. 4th ed., ISBN-10: 0-13-359162-X, ISBN-13: 978-0-13-
359162-0, 2015)
This Presentation is mainly dependent on the textbook: Operating System Concepts by Silberschatz, Abraham, et al. 10th ed
Thank You