Professional Documents
Culture Documents
Advance Operating System: Introduction To Operating Systems
Advance Operating System: Introduction To Operating Systems
Advance Operating System: Introduction To Operating Systems
Introduction to Operating
Systems
Introduction to Operating Systems
Single-User Environment
One User at a time
Initially, running only one program at a time
Now, Single-User PC allows several Programs to
run at the same time (e.g., Windows 95, Mac
System 7.x, OS/2)
Can have WP(Word Processor and Spread Sheet
open at same time and `switch' between them.
Different ways of Operation
Multi-Access/Multi-user Environments
Many users logged in at same time (e.g., via
campus network or Internet)
Same application run several times, or many
different application run at the same time
Each user appears to have all systems resources
available
Different ways of Operation
Multi-tasking/Multi-processing
Definition “A process is an instance of a
program in execution”
Processes are run apparently in parallel by
sharing system resources
Multi-tasking does not imply Multi-user.
Different ways of Operation
Multi-programming
Multi-tasking + instructions / data from different
processes co-resident in memory
Reasons for different operating
requirements
CPU Memory
memory bus
I/O bus
CPU CPU
cache cache Memory
memory bus
I/O bus
CPU CPU
cache Memory cache Memory
Application (user)
Operating System
Hardware
A software layer between the hardware and the application
programs/users which provides a virtual machine interface: Easy
and Safe
A resource manager that allows programs/users to share the
hardware resources: Fair and Efficient
How does an OS works
Hardware
Receives requests from the application: System calls
Satisfies the requests: May issue commands to hardware
Handles hardware interrupts: May upcall the application
Files
Hardware:
Mechanism Vs Policy
Application (user)
Hardware
Hardware:
Traditional OS structure
Monolithic/layered systems
One/N layers all executed in “kernel-mode”
Good performance
user
User process
System Calls
OS Kernel file memory
system system
Hardware
Micro-kernel OS
Micro-Kernel IPC
Hardware
Client-Server model, IPC between clients and servers
The micro-kernel provides protected communication
OS functions implemented as user-level servers
Flexible but efficiency is the problem
Easy to extend for distributed systems
Extensible OS kernel
process process
User Mode
user default
Extensible Kernel memory memory
service service
Hardware
User processes can load customized OS services into
the kernel
Good performance but protection and scalability
become problems
Introduction to Operating Systems
END OF LECTURE