Operating System
Operating System
Introduction to
Operating System (OS)
A. Frank - P. Weisberg
Initial Objectives
A. Frank - P. Weisberg
Services provided by an OS
Facilities for program creation
editors, compilers, linkers, debuggers, etc.
Program execution
loading in memory, I/O and file initialization.
System access
7
A. Frank - P. Weisberg
A. Frank - P. Weisberg
A. Frank - P. Weisberg
11
A. Frank - P. Weisberg
12
File Systems/Management
Directories
File Allocation
Disk Scheduling
A. Frank - P. Weisberg
Main Bibliography
A. Silberschatz, P. B. Galvin, and G. Gagne,
Operating Systems Concepts (Essentials),
9th Edition, John Wiley & Sons, 2012.
http://codex.cs.yale.edu/avi/os-book/
13
A. Frank - P. Weisberg
Main Bibliography
14
W. Stallings,
Operating
Systems: Internals
and Design
Principles, 8th ed,
Pearson, 2015.
http://williamstal
lings.com/Operatin
gSystems/
A. Frank - P. Weisberg
Main Bibliography
A. S. Tanenbaum,
Modern
Operating
Systems, 4th ed,
Pearson, 2015.
15
http://www.pearsonhig
hered.com/educator/ac
ademic/product/0,,013
6006639,00%2ben-USS_0
1DBC.html
A. Frank - P. Weisberg
Main Bibliography
16
T. W. Doeppner,
Operating Systems
in Depth, John
Wiley & Sons,
2011,
http://eu.wiley.co
m/WileyCDA/WileyTi
tle/productCd-EHEP
001803.html
A. Frank - P. Weisberg
17
A. Frank - P. Weisberg
A. Frank - P. Weisberg
19
A. Frank - P. Weisberg
20
A. Frank - P. Weisberg
21
A. Frank - P. Weisberg
Application
Programs
Utilities
Operating-System
Computer Hardware
22
A. Frank - P. Weisberg
Programmer
OperatingSystem
Designer
23
A. Frank - P. Weisberg
24
Resource Manager. 1
Resource Manager:
Manages and protects multiple computer resources: CPU,
Processes, Internal/External memory, Tasks, Applications,
Users, Communication channels, etc
Handles and allocates resources to multiple users or
multiple programs running at the same time and space
(e.g., processor time, memory, I/O devices).
Decides between conflicting requests for efficient and fair
resource use (e.g., maximize throughput, minimize
response time).
A. Frank - P. Weisberg
OS as a Resource Manager
26
A. Frank - P. Weisberg
A. Frank - P. Weisberg
Control Program. 2
Control Program:
Manages all the components of a complex
computer system in an integrated manner.
Controls the execution of user programs and
I/O devices to prevent errors and improper
use of computer resources.
Looks over and protects the computer:
Monitor, Supervisor, Executive, Controller,
Master, Coordinator .
A. Frank - P. Weisberg
29
A. Frank - P. Weisberg
Command Executer. 3
Command Executer:
Interfaces between the users and machine.
Supplies services/utilities to users.
Provides the users with a convenient CLI
(Command Language Interface), also called
a Shell (in UNIX), for entering the user
commands.
A. Frank - P. Weisberg
31
A. Frank - P. Weisberg
32
A. Frank - P. Weisberg
33
A. Frank - P. Weisberg
A. Frank - P. Weisberg
35
A. Frank - P. Weisberg
36
Easy to change/debug
Many of them (sh, bsh, csh, ksh, tcsh, wsh, bash)
Possible to switch between them (chsh)
A. Frank - P. Weisberg
Shell
Kernel
Hardware
37
A. Frank - P. Weisberg
A. Frank - P. Weisberg
39
A. Frank - P. Weisberg
40
A. Frank - P. Weisberg
41
A. Frank - P. Weisberg
42
A. Frank - P. Weisberg
cpp
cc
nroff
sh
who
a.out
Kernel
comp
date
Hardware
we
as
ld
vi
ed
grep
43
A. Frank - P. Weisberg