OS UnitI Complete
OS UnitI Complete
Operating System
Figure 1.
Multiprogramming System - continued…
● 11
DMA (Direct Memory Access)
●
DMA (Direct Memory Access)
● Degree of multiprogramming
○ Number of programs in memory which perform CPU
as well as I/O operations
● Multiprogramming system uses an appropriate
program mix of cpu bound and I/O bound
programs to ensure good utilization of both the
CPU and I/O devices.
Multiprogramming System
● Advantages
• For all operations, each user sets aside time.
• At the same time, multiple online users can utilise the same computer.
• End users believe they have complete control over the computer
system.
• Interaction among users and computers is improved.
• User inquiries can result in quick responses.
• It is no longer necessary to wait for the previous task to complete
before using the processor.
• It can do a large number of tasks quickly.
Pros of Time-Sharing OS
η :- CPU efficiency
Operation of Processes in a Time-Sharing
System
● Processes P1 and P2 follow a cyclic behavior pattern. Each
cycle contains a burst of CPU activity to service a subrequest
and a burst of I/O activity to report its result, followed by a wait
until the next subrequest is submitted to it. The CPU bursts of
processes P1 and P2 are 15 and 30 ms, respectively, while the
I/O bursts are 100 and 60 ms, respectively.
Operation of Processes in a Time-Sharing System – continued…
Operation of Processes in a Time-Sharing System – continued…
Swapping
Figure 3
Operation of an OS
Structure of Operating System
A mechanism is a specific
action needed to
implement a policy
Portability and Extensibility of Operating Systems
Layered Structure
Virtual Machine
Kernel Based
Microkernel based
Monolithic structure
● Early operating systems had a monolithic structure
● the OS formed a single software layer between the user
and the bare machine, i.e., the computer system’s
hardware
Monolithic structure