Operating System Ubit 3
Operating System Ubit 3
Unit-1
Unit-1
Unit-1
OPERATING SYSTEM:
Unit-1
Unit-1
In Batch operating system, access is given to more than one person; they submit their
respective jobs to the system for the execution.
The system put all of the jobs in a queue on the basis of first come first serve and then
executes the jobs one by one. The users collect their respective output when all the
jobs get executed.
Unit-1
The purpose of this operating system was mainly to transfer control from one job to
another as soon as the job was completed. It contained a small set of programs called
the resident monitor that always resided in one part of the main memory. The
remaining part is used for servicing jobs.
Unit-1
Advantages of Batch OS
o The use of a resident monitor improves computer efficiency as it eliminates CPU time
between two jobs.
Disadvantages of Batch OS
1. Starvation
Unit-1
There are five jobs J1, J2, J3, J4, and J5, present in the batch. If the execution time of J1
is very high, then the other four jobs will never be executed, or they will have to wait
for a very long time. Hence the other processes get starved.
2. Not Interactive
Batch Processing is not suitable for jobs that are dependent on the user's input. If a
job requires the input of two numbers from the console, then it will never get it in the
batch processing scenario since the user is not present at the time of execution.
In a multiprogramming environment, when a process does its I/O, The CPU can start
the execution of other processes. Therefore, multiprogramming improves the
efficiency of the system.
Unit-1
Advantages of Multiprogramming OS
o Throughout the system, it increased as the CPU always had one program to execute.
o Response time can also be reduced.
Unit-1
Unit-1
o The multiple processors are busier at the same time to complete any task in a
multitasking environment, so the CPU generates more heat.
Unit-1
o In this type of operating system, network traffic reduces due to the division between
clients and the server.
o This type of system is less expensive to set up and maintain.
o In this type of operating system, the failure of any node in a system affects the whole
system.
o Security and performance are important issues. So trained network administrators are
required for network administration.
Unit-1
The Application of a Real-Time system exists in the case of military applications, if you
want to drop a missile, then the missile is supposed to be dropped with a certain
precision.
o Easy to layout, develop and execute real-time applications under the real-time
operating system.
o In a Real-time operating system, the maximum utilization of devices and systems.
Unit-1
Unit-1
o Security and integrity of user programs loaded in memory and data need to be
maintained as many users access the system at the same time.
Unit-1
Unit-1
Unit-1
SIMPLE STRUCTURE
o There are four layers that make up the MS-DOS operating system, and each has
its own set of features.
o These layers include ROM BIOS device drivers, MS-DOS device drivers,
application programs, and system programs.
o The MS-DOS operating system benefits from layering because each level can
be defined independently and, when necessary, can interact with one another.
o If the system is built in layers, it will be simpler to design, manage, and update.
Because of this, simple structures can be used to build constrained systems that
are less complex.
o When a user program fails, the operating system as whole crashes.
Unit-1
o Because there are only a few interfaces and levels, it is simple to develop.
o Because there are fewer layers between the hardware and the applications, it
offers superior performance.
o The entire operating system breaks if just one user program malfunctions.
o Since the layers are interconnected, and in communication with one another,
there is no abstraction or data hiding.
o The operating system's operations are accessible to layers, which can result in
data tampering and system failure.
Unit-1
LAYERED STRUCTURE
The OS is separated into layers or levels in this kind of arrangement. Layer 0 (the lowest
layer) contains the hardware, and layer 1 (the highest layer) contains the user interface
(layer N). These layers are organized hierarchically, with the top-level layers making use
of the capabilities of the lower-level ones.
The functionalities of each layer are separated in this method, and abstraction is also
an option. Because layered structures are hierarchical, debugging is simpler, therefore
all lower-level layers are debugged before the upper layer is examined. As a result, the
present layer alone has to be reviewed since all the lower layers have already been
examined.
o Work duties are separated since each layer has its own functionality, and there
is some amount of abstraction.
o Debugging is simpler because the lower layers are examined first, followed by
the top layers.
Unit-1
MONOLITHIC STRUCTURE
The monolithic operating system controls all aspects of the operating system's
operation, including file management, memory management, device management,
and operational operations.
Unit-1
o The monolithic kernel's services are interconnected in address space and have
an impact on one another, so if any of them malfunctions, the entire system
does as well.
o It is not adaptable. Therefore, launching a new service is difficult.
Kernel?
In computer science, Kernel is a computer program that is a core or heart of an
operating system. Before discussing kernel in detail, let's first understand its basic,
i.e., Operating system in a computer.
Types of Kernel
There are mainly five types of Kernel, which are given below:
Unit-1
1. Monolithic Kernels
In a monolithic kernel, the same memory space is used to implement user services
and kernel services.
It means, in this type of kernel, there is no different memory used for user services and
kernel services.
As it uses the same memory space, the size of the kernel increases, increasing the
overall size of the OS.
The execution of processes is also faster than other kernel types as it does not use
separate user and kernel space.
Examples of Monolithic Kernels are Unix, Linux, Open VMS, XTS-400, etc.
Advantages:
Unit-1
o The execution of processes is also faster as there is no separate user space and
kernel space and less software involved.
o As it is a single piece of software hence, it's both sources and compiled forms
are smaller.
Disadvantages:
o If any service generates any error, it may crash down the whole system.
o These kernels are not portable, which means for each new architecture, they
must be rewritten.
o Large in size and hence become difficult to manage.
2. Microkernel
Advantages
Unit-1
o A new service can be easily added without modifying the whole OS.
o In a microkernel, if a kernel process crashes, it is still possible to prevent the
whole system from crashing.
Disadvantages
o There is more requirement of software for interfacing, which reduces the system
performance.
o Process management is very complicated.
o The messaging bugs are difficult to fixed.
S.
Parameters Microkernel Monolithic kernel
No.
Unit-1
To implement IPC
messaging queues are Signals and Sockets are
9. Communication used by the utilized to implement IPC
communication in monolithic kernels.
microkernels.
Unit-1