Operating System Tutorial

Operating System Tutorial Types of Operating System Evolution of Operating System Functions of Operating System Operating System Properties Operating System Services Components of Operating System Needs of the Operating System

Operating Systems

Linux Operating System Unix Operating System Ubuntu Operating System Chrome Operating Systems Fedora Operating System MAC Operating System MS Windows Operating System Solaris Operating System Cooperative Operating System CorelDRAW Operating System CentOS FreeBSD Operating Systems Batch Operating System MS-DOS Operating System Commercial Mobile Operating Systems

Differences

Difference Between Multi-programming and Multitasking Difference between C-LOOK and C-SCAN Difference between Rotational Latency and Disk Assess Time Trap vs Interrupt Difference between C-SCAN and SSTF Difference between SCAN and FCFS Difference between Seek Time and Disk Access Time Difference between SSTF and LOOK Difference between Process and Program in the Operating System Difference between Protection and Security in Operating System

How To

How to implement Monitors using Semaphores How to Install a Different Operating System on a PC

Questions

What is Kernel and Types of Kernel What is DOS Operating System What is Thread and Types of Thread What is Process Scheduler and Process Queue What is Context Switching What is CPU Scheduling What is Producer-Consumer Problem What is Semaphore in Operating System Monitors in Operating System What is Deadlock What is Paging and Segmentation What is Demand Paging What is Virtual Memory What is a Long term Scheduler What is Page Replacement in Operating System What is BSR Mode What is Convoy Effect What is Job Sequencing in Operating System Why is it critical for the Scheduler to distinguish between I/O-bound and CPU-bound programs Why is there a Need for an Operating System

Misc

Process Management Process State Scheduling Algorithm FCFS (First-come-First-Serve) Scheduling SJF (Shortest Job First) Scheduling Round-Robin CPU Scheduling Priority Based Scheduling HRRN (Highest Response Ratio Next) Scheduling Process Synchronization Lock Variable Mechanism TSL Mechanism Turn Variable Mechanism Interested Variable Mechanism Deadlock Avoidance Strategies for Handling Deadlock Deadlock Prevention Deadlock Detection and Recovery Resource Allocation Graph Banker’s Algorithm in Operating System Fixed Partitioning and Dynamic Partitioning Partitioning Algorithms Disk Scheduling Algorithms FCFS and SSTF Disk Scheduling Algorithm SCAN and C-SCAN Disk Scheduling Algorithm Look and C-Look Disk Scheduling Algorithm File in Operating System File Access Methods in Operating System File Allocation Method Directory Structure in Operating System N-Step-SCAN Disk Scheduling Feedback Queue in Operating System Contiguous Memory Allocation in Operating System Real-time Operating System Starvation in Operating System Thrashing in Operating System 5 Goals of Operating System Advantages of Operating System Advantages of UNIX Operating System Bit Vector in Operating System Booting Process in Operating System Can a Computer Run Without the Operating System Dining Philosophers Problem in Operating System Free Space Management in Operating System Inter Process Communication in Operating System Swapping in Operating System Memory Management in Operating System Multiprogramming Operating System Multitasking Operating Systems Multi-user Operating Systems Non-Contiguous Memory Allocation in Operating System Page Table in Operating System Process Scheduling in Operating System Segmentation in Operating System Simple Structure in Operating System Single-User Operating System Two Phase Locking Protocol Advantages and Disadvantages of Operating System Arithmetic operations in binary number system Assemblers in the operating system Bakery Algorithm in Operating System Benefits of Ubuntu Operating System CPU Scheduling Criteria in Operating System Critical Section in Operating System Device Management in Operating System Linux Scheduler in Operating System Long Term Scheduler in Operating System Mutex in Operating System Operating System Failure Peterson\'s Solution in Operating System Privileged and Non-Privileged Instructions in Operating System Swapping in Operating System Types of Operating System Zombie and Orphan Process in Operating System 62-bit operating system Advantages and Disadvantages of Batch Operating System Boot Block and Bad Block in Operating System Contiguous and Non - Contiguous Memory Allocation in Operating System Control and Distribution Systems in Operations Management Control Program in Operating System Convergent Technologies in Operating System Convoy Effect in Operating System Copy Operating Systems to SSD Core Components of Operating System Core of UNIX Operating System Correct Value to return to the Operating System Corrupted Operating System Cos is Smart Card Operating System Cosmos Operating Systems Examples Generation of Operating System Hardware Solution in Operating System Process Control Block in Operating System Function of Kernel in Operating System Operating System Layers History of Debian Operating Systems Branches and Architecture of Debian Operating Systems Features and Packages of Debian Operating Systems Installation of Operating System on a New PC Organizational Structure and Development in Debian Operating Systems User Interface in Operating System Types Of Memory in OS Operating System in Nokia Multilevel Paging in OS Memory Mapping Techniques in OS Memory Layout of a Process in Operating System Hardware Protection in Operating System Functions of File Management in Operating System Core of Linux Operating System Cache Replacement Policy in Operating System Cache Line and Cache Size in Operating System Kernel I/O Subsystem Security Management in Operating System Bare Machine in Operating System Mutual Exclusion in Operating system Cycle Stealing in the Operating System Cost and Support for the User Operating System Assembly operating system Course Objectives and Outcomes of Operating System Cost of Windows 7 Operating System Cost of UNIX Operating System Cots Operating System Cost of Windows 10 Operating System Artificial Intelligence Operating System Download Artificial intelligence assistant operating system AROS Research Operating System Deadlock Detection in Distributed Systems Process Management in Operating System (OS) Robotics Operating System SSD Caching Tails Operating System Computer Assisted Coding System (CACS) Disk Operating System File Management in Operating System What is the Importance of Operating Systems? Kernel Data Structure Operating System Security All Dos Commands with Explanation Lineage OS Symbian OS Bharat OS ChromeOS Flex Clustered operating system Concurrency in Operating System Monolithic structure in the operating system Oxygen Operating System System calls in the operating system (OS) System program in OS Application Programs in OS Shared Devices in Operating Systems Address Binding in the Operating System Disk Controller in the Operating System Dual-mode Operations in the Operating System Multilevel Queue Scheduling in Operating System Pixel OS POP!_OS Spooling in the Operating System Dead Operating System Difference Between Dual Core and Octa Core Processors Kolibri OS Mageia Operating System Operating System Hardening Blade Server in Operating System Classification of Operating System CNK Operating System Difference between FAT32, exFAT, and NTFS File Systems DIFFERENCE BETWEEN PRIORITY INVERSION AND PRIORITY INHERITANCE DUAL MODE OPERATIONS IN OS File Models in Distributed Operating System MICROKERNEL Monolithic Kernel and key differences from Microkernel Multi-Process Operating System Objectives of the Operating System Parallel System in Operating System What is an OLE Object?

Monolithic structure in the operating system

The monolithic operating system is an extremely simple operating system in which the kernel is completely responsible for managing files, memory, devices, and processes. The kernel has access to all of the system's resources. In monolithic systems, the kernel houses all of the operating system's components. The 1970s marked the introduction of operating systems with a monolithic architecture.

Alternatively called the monolithic kernel, the monolithic operating system has both names. A modest operation like batch processing or time-sharing in banks is carried out using this outdated operating system. Each piece of hardware is managed by the monolithic kernel, which functions as a virtual machine. Unlike a microkernel, which can only do certain functions, it is different. User space and kernel space are the two compartments of a microkernel. IPC (inter-process communication) is the method used by both components to talk to one another. The benefit of a microkernel is that if one server crashes, the other server takes over.

Monolithic kernel:

Monolithic kernels are a different classification of kernels. The only difference between this one and the microkernel is that user services and kernel services are implemented in the same address space. This one manages system resources between software and hardware. The kernel's expansion causes the operating system's size to increase as well. This kernel provides elements of the operating system such as memory management, file management, CPU scheduling, and others via system calls. Operating system execution is sped up because both services are implemented inside the same address area.

Advantages of the monolithic kernel:

There are several advantages of the monolithic kernel. Some main advantages of the monolithic kernel are as follows:

  • The monolithic kernel runs relatively quickly because all services, including memory management, file management, process scheduling, etc., are implemented inside the same address area.
  • In the monolithic kernel, a process operates entirely in a single address space.
  • A static, single-binary file serves as the monolithic kernel.

Disadvantages of the monolithic kernel:

There are several disadvantages of the monolithic kernel. Some main disadvantages of the monolithic kernel are as follows:

  • This kernel's disadvantage is that if any service fails, the entire system crashes. If the user adds a new service, the complete operating system has to be changed.
  • Should the user need to create a new service. The user must do so to change the operating system as a whole.

Monolithic kernel Architecture:

The operating system architecture's monolithic design does not specifically account for the unique characteristics of the operating system. Although the architecture follows to the separation of concerns, no effort is taken to limit the privileges assigned to the various components of the operating system. Maximum privileges are granted for the complete operating system to operate. The monolithic operating system has the same, generally minimal communication overhead as any other piece of software.

  • The application area and system variables are where the 16-bit address space in CP/M begins. CCP (Console Command Processor), BDOS (Basic Disc Operating System), and BIOS (Basic Input Output System) are the final three components of the operating system.
  • The array of interrupt vectors and the system variables are the first two things in DOS's 20-bit address space. The resident DOS portion and the application area are the third and fourth, while the memory block utilized by the video card and BIOS is the last thing in the address space.

Advantages of monolithic kernel architecture:

There are several advantages of the monolithic kernel architecture. Some main advantages of the monolithic kernel architecture are as follows:

  • Simple, straightforward construction.
  • Faster execution because all services are directly accessible.

Disadvantages of monolithic kernel architecture:

There are several disadvantages of the monolithic kernel architecture. Some main disadvantages of the monolithic kernel architecture are as follows:

  • It's quite tough to add new features or get rid of old ones.
  • Security errors are always present because there is no separation between the many servers that are present in the kernel.

Key differences between monolithic kernel and monolithic kernel architecture are:

  • System services: All system services in a monolithic kernel operate in kernel space, whereas in a microkernel, only the most fundamental services (such as memory management and process scheduling) do so, with all other services operating in user space.
  • Performance: Due to the lack of a cost involved with transferring data between kernel space and user space, monolithic kernels are typically quicker and more effective than microkernels.
  • Microkernels are more modular than monolithic kernels due to the division of services into distinct processes that operate in user space. It makes it simpler to add or delete services without having an impact on other system components.
  • Micro kernels are typically thought of as being more secure than monolithic kernels since a flaw or vulnerability in a service that runs in user space is less likely to have an impact on the entire system.
  • Because all system services are included and share the same memory space, designing a monolithic kernel is typically easier and quicker than developing a microkernel.

Monolithic system:

Modularity in operating systems occurs at the binary level rather than the architectural level. It's critical to distinguish between server-client operating systems and structurally modular monolithic operating systems, which make use of microkernels and servers. Hybrid kernels are a common name for these variations. In terms of practicality, restarting with a different operating system image is just a less flexible method of handling the operating system image during runtime. The modules make it straightforward to add functionality to operating systems as needed. Dynamically loadable modules incur some cost as compared to integrating the module into the operating system image.

Features of the monolithic system:

There are several features of the monolithic system. Some main features of the monolithic system are as follows:

  1. Simple architecture: The architecture of this type of operating system is simple. The kernel already includes every part required for processing.
  2. Functions well for smaller jobs: It performs better for smaller tasks because it can manage few resources.
  3. All of the components are capable of direct communication with both the kernel and each other.
  4. Faster operating system: Fast and reliable code is used to create monolithic kernels.

A monolithic kernel and a microkernel differ in the following ways:

An operating system kernel type that enables customization is the microkernel. It operates in privileged mode and offers inter-process communication (IPC) and low-level address space management. The microkernel is also topped by OS services, including the file system, virtual memory management, and CPU scheduler. It needs its own address space to make each service secure. In addition, each application has its own address space. As a result, programs, OS Services, and kernels are all protected.

One more category for the kernel is monolithic. Each program has its own address space in monolithic kernel-based systems. Although user services and kernel services are implemented inside the same address space, this kernel controls system resources between applications and hardware. As a result, the operating system's size also grows, as does the kernel.

Micro kernels are distinguished by their modularity, simplicity, and security, whereas monolithic kernels are distinguished by their tight integration of system functions and excellent performance. The particular demands and specifications of the operating system that is being created determine whether the monolithic or microkernel architecture should be used.

Head-to-head comparison between Monolithic Kernel and Microkernel

FeaturesMonolithic KernelMicrokernel
DefinitionOperating systems can have a form of kernel called a monolithic kernel, which houses all of the system's code in the kernel area.  For the purpose of implementing an operating system, a microkernel is a form of kernel that offers low-level thread management, address space management, and inter process communication.
Security  Because the OS and the user were in the same address space when the process or service crashed, the entire system crashed.There is no impact on microkernel development if the service crashes.  
Address spaceThe same address space is used by kernel services as well as user services in a monolithic kernel.Services in the microkernel are stored in distinct address spaces from kernel services.
Size  Since the OS and the user share the same address space, the size is larger.Smaller
Customization  It is challenging to integrate new features into the monolithic kernel. As a result, it cannot be modified.The microkernel can accommodate new features more easily. It may be customized considerably as a result.
OS Services    In a system with a single monolithic kernel, the OS services are built into the kernel.The kernel and OS services are separated in a system with a microkernel.
Code  A monolithic kernel may be written with less code.A microkernel has to be written with more code.
ExtendibleComplex to extendEasily extendible
Platform independence  Direct hardware access results in less portability.More transportable since the majority of drivers and services operate in user space.
ExampleLinux, FreeBSD, OpenBSD, NetBSD, Microsoft Windows (95, 98, Me), Solaris, HP-UX, DOS, OpenVMS, XTS-400, etc.        QNX, Symbian, L4L.inux, Singularity, K42, Mac OS X, Integrity, PikeOS, HURD, Minix, and Coyotos.
PerformanceThe performance of the monolithic kernel is high since there is minimal overhead and direct function calls.The microkernel's performance is lower because of message forwarding and increased overhead.