Professional Documents
Culture Documents
Slide 1
What is an Operating System?
Application Programs
System Programs
HARDWARE
(Contd…)
Functions/Role of an OS
User Environment - OS layer transforms bare
hardware machine into higher level abstractions
Execution environment - process management, file
manipulation, interrupt handling, I/O operations, language.
Error detection and handling
Protection and security
Fault tolerance and failure recovery(Remove problems)
Government(It makes the environment for all the devices
to work together)
Resource Allocator(Specific request to Specific resource)
Control Program
Slide 9
Example card deck of a Job
A. Frank - P. Weisberg
Uniprogramming (single tasking) Systems
User
progra
m area
Multiprogramming:
Multiprogramming is a technique to execute number of
programs simultaneously by a single processor.
In Multiprogramming, number of processes reside in
main memory at a time.
The OS picks and begins to executes one of the jobs in
the main memory.
If any I/O wait happened in a process, then CPU
switches from that job to another job.
Hence CPU in not idle at any time.
Multiprogramming (Contd…):
OS •Figure dipicts the layout of
multiprogramming system.
Job 1
• The main memory consists of 5
Job 2 jobs at a time, the CPU executes
one by one.
Job 3
Advantages:
Job 4 •Efficient memory utilization
•Throughput increases
Job 5
•CPU is never idle, so performance
increases.
Multiprogramming
A. Frank - P. Weisberg
Time Sharing Systems:
Time sharing, or multitasking, is a logical extension of
multiprogramming.
Multiple jobs are executed by switching the CPU between
them.
In this, the CPU time is shared by different processes, so
it is called as “Time sharing Systems”.
Time slice is defined by the OS, for sharing CPU time
between processes.
CPU scheduling is used
Examples: linex, Unix, etc.,
Desktop(Personal) Systems
Personal computers – computer system dedicated to a
single user.
I/O devices – keyboards, mouse, display screens, small
printers.
User convenience and responsiveness.
Can adopt technology developed for larger operating
systems. Often individuals have sole use of computer and do
not need advanced CPU utilization of protection features.
May run several different types of operating systems
(Windows, MacOS, UNIX, Linux)
Asymmetric multiprocessing(AMP)
Each processor is assigned a specific task; controlling
processor schedules and allocates work to other
processors.
More common in extremely large systems
Program
time t
27
Interrupts
Interrupt
Program Program
Interrupt Service Routine
time t
28
Classes of Interrupts
Supervisor call interrupt
I/O call interrupt/External
Restart interrupt
Program Check interrupt
Machine check Interrupt.