Types of Os
Types of Os
Job n
Multiprogramming OS
• It takes one job from the memory and starts its
execution.
• During execution eventually, the job requires some I/O
operation so the job waits until I/O operation is
complete.
• In non multiprogramming environment, during this
time CPU sits idle. But in multiprogramming, the
operating system switches to present job and executes
another job.
• When that job waits for some task, CPU is switched to
another job and so on.
• When first job finishes waiting, the CPU again starts its
execution. So here the CPU time is fully utilized.
Multiprogramming OS
Advantages:
• Increase CPU utilization by eliminating idle
time of CPU.
• Multiple jobs can execute simultaneously.
Disadvantage:
• User cannot interact with his program during
execution, i.e., it does not support
interactivity.
Functions of Operating System in
Multiprogramming
(a) Job Scheduling
(b) CPU scheduling
(c) Memory Management