Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
g
Systems:
Internals
and
Design
Principles
Operating System
Operating
System Overview
Dr. Muhammed J. Al-Muhammed
Operating System
A
An
Convenience
Efficiency
Ability to evolve
2
Operating System
Computer Hardware
and Software
Infrastructure
3
Operating System
Operating System
Services
Program
development:
Program
execution:
different services
such editors and debuggers to help programmers in
creating their programs
loading data and
instructions to memory, initialization of IO devices,
scheduling
Access
I/O devices:
Controlled
access to files:
sharing, caching.
Operating System
Authorization,
Operating System
Services
System
Error
Accounting
Operating System
Key Interfaces
Instruction
is
the interface between hardware and the software.
Two interfaces; user ISA (small) and OS ISA
(larger)
Application
Application
(API):
programming interface
The Role of an OS
A
The
OS is responsible for
managing these resources
7
Operating System
Operating System
as Software
The
8
Operating System
Operating
System
as
Resource
Manager
9
Operating System
Evolution of
Operating Systems
A major OS will evolve over time
Evolution of
Operating Systems
Stages include:
11
Operating System
Serial
Processin
g
Simple
Batch
Systems
Time
Sharing
Multiprogramme Systems
d Batch
Systems
Serial Processing
Earliest
Computers:
No operating system
Problems:
programmers interacted
directly with the
computer hardware
12
Operating System
Scheduling:
most installations used a
hardcopy sign-up sheet to
reserve computer time
Setup time
a considerable amount of
time was spent just on
setting up the program to
run
Simple Batch
Systems
Early
Monitor
13
Operating System
Monitor Point of
View
Resident Monitor is
software always in memory
14
Operating System
Processor Point of
View
what compiler to
use
what data to use
16
Operating System
Desirable Hardware
Features
Memory protection for monitor
while the user program is executing, it must not alter the
memory area containing the monitor
Timer
prevents a job from monopolizing the system
Privileged instructions
can only be executed by the monitor
Interrupts
17
Operating System
Operating System
18
User Mode
Kernel Mode
Modes of Operation
Sacrifices:
19
Operating System
Multiprogrammed
Batch Systems
Processor
is
often idle
20
Operating System
even with
automatic
job
sequencing
I/O devices
are slow
compared
to processor
Uniprogramming
21
Operating System
Multiprogramming
22
When one job needs to wait for I/O, the processor can
switch to the other job, which is likely not waiting for
I/O
Operating System
Multiprogramming
Multiprogramming
also known as multitasking
memory is expanded to hold three, four, or more
programs and switch among all of them
23
Operating System
Multiprogramming
Example
24
Operating System
Effects on Resource
Utilization
25
Operating System
Utilization Histograms
26
Operating System
Time-Sharing
Systems
Can
jobs
Processor
users
Multiple
27
Operating System
Batch
Multiprogramming
vs. Time Sharing
28
Operating System
CTSS
29
Operating System
CTSS
Operation
30
Operating System
Major Advances
Operating
31
Operating System
Process
Fundamental
systems
32
Operating System
Development of the
Process
Three major lines of computer system development
created problems in timing and synchronization that
contributed to the development:
33
Operating System
Causes of Errors
Improper
synchronization
34
Operating System
Nondeterminate
program operation
program execution is
interleaved by the processor
when memory is shared
Deadlocks
Components of
a Process
A
process
contains three
components:
an executable
program
the associated data
needed by the
program (variables,
work space, buffers,
etc.)
35 the execution
Operating System
context (or process
Process
Management
The entire state of
the process at any
instant is contained
in its context
be designed and
incorporated into
the OS by
expanding the
context to include
any new
36information needed
to support the
Operating System
Memory
Management
The
37
Operating System
Virtual Memory
A
Conceived
38
Operating System
Paging
Virtual
Memory
40
Operating System
Virtual Memory
Addressing
41
Operating System
Information
Protection
and Security
The problem
involves controlling
access to computer
systems and the
information stored
in them
42
Operating System
Scheduling and
Resource
Management
Key
responsibility of an OS is
managing resources
Resource
consider:
43
Operating System
Key Elements of an
Operating System
44
Operating System
Different
Architectural
Approaches
Demands
on operating systems
require new ways of organizing the
OS
45
Operating System
Microkernel
Architecture
Assigns
The
46
Operating System
approach:
Multithreading
47
Operating System
Symmetric
Multiprocessing (SMP)
Operating System
SMP Advantages
49
Operating System
Mul
tipr
ogr
am
min
g
50
Operating System
OS Design
Distributed
Operating System
extensions to a small
kernel
Object-Oriented
Design
Used for adding modular
51
Operating System
Enables programmers to
customize an operating
system without disrupting
system integrity
Virtual Machines
and Virtualization
Virtualization
enables a single PC or server to simultaneously run
multiple operating systems or multiple sessions of a single
OS
a machine can host numerous applications, including
those that run on different operating systems, on a single
platform
host operating system can support a number
of virtual machines (VM)
52
Operating System
the
platform
Virtual
Machin
e
Concep
t
53
Operating System
Virtual Machine
Architecture
54
Operating System
55
Operating System
56
Operating System
Symmetric
Multiprocessor OS
Considerations
57
Operating System
Multicore OS
Considerations
58
Operating System
Grand Central
Dispatch
Developer
59
Operating System
Virtual Machine
Approach
Allows
Multicore
60
Operating System
Microsoft Windows
Overview
Windows 2000
included services and functions
to support distributed processing
Active Directory
plug-and-play and powermanagement facilities
16-bit
GUI interface
Windows 95
32-bit version
61
Operating System
Windows Azure
Windows
Architecture
62
Operating System
Kernel-Mode
Components of
Windows
Executive
Kernel
63
Device Drivers
Operating System
User-Mode Processes
Four
64
Operating System
Client/Server Model
Windows
OS services,
environmental
subsystems, and
applications are all
structured using the
client/server model
Common
in distributed
systems, but can be
used internal to a single
system
Processes
65 via RPC
Operating System
communicate
Advantages:
it
it
improves reliability
it
provides a uniform
means for applications to
communicate with
services via RPCs without
restricting flexibility
it
provides a suitable
base for distributed
computing
66
Operating System
Windows Objects
Windows
Key
67
Operating System
n
C
o lenrK
ew
o
sd
nW
i
68
Operating System
Windows 7
Engineering improvements
Performance improvements
69
Security
Energy efficiency
Reliability improvements
Thread improvements
Operating System
Traditional UNIX
Systems
First widely available version outside Bell Labs was Version 6 in 1976
Most important of the non-AT&T systems was UNIX BSD (Berkeley Software
70 Distribution)
Operating System
Descripti
on
of
UNIX
71
Operating System
Tradition
al UNIX
Kernel
72
Operating System
Moder
n UNIX
Kernel
73
Operating System
LINUX Overview
74
Operating System
Modular
Monolithic Kernel
75
Operating System
Loadable Modules
Dynamic linking
Stackable modules
Linux
Kernel
Modul
es
76
Operating System
77
Operating System
Linux Signals
78
Operating System
Operating System
Linux Vserver
Architecture
80
Operating System
Summary
user/computer interface
resource manager
Evolution:
Process
Memory management
Multithreading
distributed OS
Virtual machines
Microsoft Windows/Windows 7
UNIX/Linux systems
81
Operating System
virtualization