Introduction To Operating System
Introduction To Operating System
MODULE 1
Overview of operating system
Operating System
2
Convenience
Makes
Efficiency
Allows
Ability to evolve
Permit
Operating system
Users
OS is a resource allocator
Manages
all resources
Decides between conflicting requests for efficient and
fair resource use
OS is a control program
Controls
varies wildly
Computer Startup
9
Operating System
10
Program development
Editors
and debuggers
Program execution
Access to I/O devices
Controlled access to files
System access
memory
error
device failure
software
errors
arithmetic
overflow
access forbidden memory locations
Accounting
collect
statistics
monitor performance
used to anticipate future enhancements
used for billing users (potentially)
14
Kernel
15
When
Hardware
Serial Processing
No
operating system
Machines run from a console with display lights and
toggle switches, input device, and printer
Schedule tome (book)
Setup included loading the compiler, source program,
saving compiled program, and loading and linking
compiler to use
what data to use
Hardware Features
20
Memory protection
do
Timer
prevents
Uniprogramming
21
Multiprogramming
22
Multiprogramming
23
24
Example
25
JOB1
JOB2
JOB3
Type of job
Heavy I/O
Duration
5 min.
15 min.
10 min.
100 K
80 K
Need disk?
No
No
Yes
Need terminal
No
Yes
No
Need printer?
No
No
Yes
Effects of Multiprogramming
26
Uniprogramming
Multiprogramming
Processor use
22%
43%
Memory use
30%
67%
Disk use
33%
67%
Printer use
33%
67%
Elapsed time
30 min.
15 min.
Throughput rate
6 jobs/hr
12 jobs/hr
18 min.
10 min.
Time Sharing
27
Batch
Multiprogramming
Time Sharing
Principal
objective
Maximize processor
use
Minimize response
time
Source of
directives to
operating
system
Commands entered
at the terminal
Major Achievements
29
Processes
Memory Management
Information protection and security
Scheduling and resource management
System structure
Processes
30
A program in execution
An instance of a program running on a computer
The entity that can be assigned to and executed on
a processor
A unit of activity characterized by a single
sequential thread of execution, a current state, and
an associated set of system resources
Improper synchronization
ensure
signal
Deadlocks
Process
32
executable program
Associated data needed by the program
Execution context of the program
All
Process
33
Memory Management
34
Process isolation
Deny interference
Long-term storage
Virtual Memory
35
File System
36
Paging
37
38
Access control
regulate
to users
Certification
proving
Fairness
give
Differential responsiveness
discriminate
Efficiency
maximize
System Structure
43
Level Name
Objects
Example Operations
13
Shell
User programming
environment
12
User processes
User processes
11
Directories
Directories
10
Devices
File system
Files
Communications
Pipes
Level Name
Objects
Example Operations
Virtual Memory
Segments, pages
Local secondary
store
Primitive processes
Primitive process,
semaphores, ready
list
Level Name
Objects
Example Operations
Interrupts
programs
Interrupt-handling
Procedures
Instruction Set
Electronic circuits
Microkernel architecture
assigns
address
space
interprocess communication (IPC)
basic scheduling
Multithreading
process
Thread
dispatchable
unit of work
executes sequentially and is interruptable
Symmetric multiprocessing
there
Object-oriented design
used
Kernel
52
System Call
54
disk)
Creating and executing new processes
Communicating with integral kernel services (like
scheduling).
Control
File management
Device Management
Information Maintenance
Communication
Process Control
load
execute
create
File management
create
Device Management
request
Information Maintenance
get/set
time or date
get/set system data
get/set process, file, or device attributes
Communication
create,
many services
Support variety of hardware and software
Operating system architectures help manage this
complexity
Organize
Kernel Architectures
60
Monolithic
Layered
Micro-kernel
Distributed
Monolithic Architecture
61
Direct
E.g.
DOS
Monolithic Architecture
62
Layered Architecture
63
Layered Architecture
64
Microkernel Architecture
65
Microkernel
provides
Microkernel Architecture
66
Monolithic kernel:
Contains modular components
Process
management
Interprocess communication
Memory management
File system management
VFS:
I/O
management
Networking
Operation Modes
71
Kernel Mode
User Mode
74
End !