5. OVERVIEW
An operating system is a design that enables user application programs to communicate with the hardware of the
machine. The operating system should be built with the utmost care because it is such a complicated structure and
should be simple to use and modify. Partially developing the operating system is a simple approach to accomplish
this. Each of these components needs to have distinct inputs, outputs, and functionalities.
The operating system can be implemented with the help of various structures. The structure of the OS depends mainly
on how the various standard components of the operating system are interconnected and melded into the kernel. A
design known as an operating system enables user application programs to communicate with the machine’s hardware.
Given its complex design and need to be easy to use and modify, the operating system should be constructed with the
utmost care. A straightforward way to do this is to supernaturally develop the operating system. These parts must each
have unique inputs, outputs, and functionalities.
6. An operating system (OS) is the program that, after being
initially loaded into the computer by a boot program,
manages all of the other application programs in a
computer. The application programs make use of the
operating system by making requests for services through a
defined application program interface (API).
An Operating System (OS) is an interface between a
computer user and computer hardware. An operating system
is a software which performs all the basic tasks like file
management, memory management, process management,
handling input and output, and controlling peripheral
devices such as disk drives and printers.
INTRODUCTION
7. STRUCTURE OF OPERATING SYSTEM
The following structures in the operating system:
Simple Structure
Monolithic Structure
Layered Approach Structure
Micro-Kernel Structure
Exo-Kernel Structure
Virtual Machines
8. Simple Structure:
Such operating systems do not have well-defined structures and are small,
simple, and limited. The interfaces and levels of functionality are not well
separated. MS-DOS is an example of such an operating system. In MS-DOS,
application programs are able to access the basic I/O routines. These types of
operating systems cause the entire system to crash if one of the user programs
fails.
Advantages of Simple structure:
It delivers better application performance because of the few interfaces
between the application program and the hardware.
It is easy for kernel developers to develop such an operating system.
Disadvantages of Simple structure:
The structure is very complicated, as no clear boundaries exist between
modules.
It does not enforce data hiding in the operating system.
9. 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. The core of an operating system for
computers is called the kernel (OS). All other System components are
provided with fundamental services by the kernel. The operating system and
the hardware use it as their main interface. When an operating system is built
into a single piece of hardware, such as a keyboard or mouse, the kernel can
directly access all of its resources.
Advantages of Monolithic Structure:
Because layering is unnecessary and the kernel alone is responsible for
managing all operations, it is easy to design and execute.
Disadvantages of Monolithic Structure:
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.
It is not adaptable. Therefore, launching a new service is difficult.
10. Layered Structure:
An OS can be broken into pieces and retain much more control over the
system. In this structure, the OS is broken into a number of layers (levels). The
bottom layer (layer 0) is the hardware, and the topmost layer (layer N) is the
user interface. These layers are so designed that each layer uses the functions
of the lower-level layers. This simplifies the debugging process, if lower-level
layers are debugged and an error occurs during debugging, then the error must
be on that layer only, as the lower-level layers have already been debugged.
Advantages of Layered structure:
Layering makes it easier to enhance the operating system, as the
implementation of a layer can be changed easily without affecting the
other layers.
It is very easy to perform debugging and system verification.
Disadvantages of Layered structure:
In this structure, the application’s performance is degraded as compared
to simple structure.
It requires careful planning for designing the layers, as the higher layers
use the functionalities of only the lower layers.
11. Micro-kernel Structure:
This structure designs the operating system by removing all non-essential
components from the kernel and implementing them as system and user
programs. This results fails, in a smaller kernel called the micro-
kernel. Advantages of this structure are that all new services need to be added
to user space and does not require the kernel to be modified. Thus it is more
secure and reliable as if a service fails, then rest of the operating system
remains untouched. Mac OS is an example of this type of OS.
Advantages of Micro-kernel structure:
It makes the operating system portable to various platforms.
As microkernels are small so these can be tested effectively.
Disadvantages of Micro-kernel structure:
Increased level of inter module communication degrades system
performance.
12. Exo-kernel Structure:
Exokernel is an operating system developed at MIT to provide application-level management of hardware
resources. By separating resource management from protection, the exokernel architecture aims to enable
application-specific customization. Due to its limited operability, exokernel size typically tends to be minimal.
The OS will always have an impact on the functionality, performance, and scope of the apps that are developed
on it because it sits in between the software and the hardware. The exo-kernel operating system makes an attempt
to address this problem by rejecting the notion that an operating system must provide abstractions upon which to
base applications. The objective is to limit developers’ use of abstractions as little as possible while still giving
them freedom.
Advantages of Exo-kernel:
Support for improved application control.
Separates management from security.
It improves the performance of the application.
It is simpler to test and create new operating systems.
Disadvantages of Exo-kernel:
A decline in consistency
Exokernel interfaces have a complex architecture.
13. Virtual Machines:
A virtual machine abstracts the hardware of our personal computer, including the CPU, disc drives, RAM, and NIC
(Network Interface Card), into a variety of different execution contexts, giving us the impression that each execution
environment is a different computer. An illustration of it is a virtual box.
An operating system enables us to run multiple processes concurrently while making it appear as though each one is
using a different processor and virtual memory by using CPU scheduling and virtual memory techniques.
Advantages of Virtual Machines:
Due to total isolation between each virtual machine and every other virtual machine, there are no issues with
security.
A virtual machine may offer an architecture for the instruction set that is different from that of actual computers.
Simple availability, accessibility, and recovery convenience.
Disadvantages of Virtual Machines:
Depending on the workload, operating numerous virtual machines simultaneously on a host computer may have
an adverse effect on one of them.
When it comes to hardware access, virtual computers are less effective than physical ones.
14. COMPONENTS OF OPERATING SYSTEM
The components of an operating system play a key role to make a variety of computer system parts work together.
There are the following components of an operating system, such as:
1. Process Management
2. File Management
3. Network Management
4. Main Memory Management
5. Secondary Storage Management
6. I/O Device Management
7. Security Management
8. Command Interpreter System
15. SUMMARY
The operating system makes it possible for the user to communicate with the hardware of the computer.
The operating system is used as the foundation for installing and using system software. The
interconnections between the various operating system components can be defined as the operating
system structure. The operating system is divided into various different structural types: simple structure,
monolithic approach, layered approach, micro-kernels, exokernels, and virtual machines. Each time one
of these methods or structures changed, the OS became progressively better.