Unit1 - Introduction To OS1
Unit1 - Introduction To OS1
*[https://www.tutorialspoint.com/operating_system/os_types.htm]
TYPES OF OS: Batch Systems
Disadvantages:
No interaction between user and computer.
No mechanism to prioritize the processes
TYPES OF OS: Batch Systems
https://www.youtube.com/watch?v=sq2SE_GbZ34
Multiprogrammed OS
Multiprogramming: When 2 or more processes reside
in memory at the same time
Single user processes cannot keep CPU and I/O
devices busy at all times
Multiprogramming organizes jobs (code and data)
so CPU always has one to execute
Multiprogramming assumes a single shared
processor. One job selected and run via job
scheduling
Multiprogramming increases CPU utilization.
It is mixture of I/O bound and CPU bound processes
Multiprogrammed OS
In this the operating system picks up and begins
to execute one of the jobs from memory.
Time Driven
Task specific
MS-DOS – written to
provide the most
functionality in the
least space
Not divided into
modules
Although MS-DOS has
some structure, its
interfaces and levels
of functionality are
not well separated
Non Simple Structure -- UNIX
Monolithic
Microkernel
Hybrid
Monolithic Kernel
A monolithic kernel is an operating system
architecture where the entire operating system
(which includes the device drivers, file system,
and the application IPC etc.) is working in kernel
space, in supervisor mode.
Cons
Hardware is more abstracted through drivers
Hardware may react slower because drivers are in
user mode
Processes have to wait in a queue to get information
Processes can’t get access to other processes
without waiting
HybridKernel
Hybrid kernels have the ability to pick and
choose what they want to run in user mode and
what they want to run in supervisor mode.
Device drivers and file system I/O will be run in
user mode while IPC and server calls will be
kept in the supervisor mode.
This require more work of the hardware
manufacturer because all of the driver
responsibility is up to them.
Hybrid Kernel
Pros
Developer can pick and choose what runs in user
mode and what runs in supervisor mode
Smaller install than monolithic kernel
More flexible than other models
Cons
Processes have to wait in a queue to get
information
Processes can’t get access to other processes
without waiting
Device drivers need to be managed by user
Interrupts
An interrupt is a signal from a device attached
to a computer or from a program within the
computer that causes the main program that
operates the computer (the operating system)
to stop and figure out what to do next.
operating system.
It is a call to the kernel in order to execute a specific
function that controls a device or executes a
instruction.