Operating Systems
Operating Systems
Operating Systems
What is an Operating System(O.S)
An operating system is a software layer that manages hardware resources and
provides an environment for users and applications to interact with the
system. In other words, It is a a medium through which we can communicate
with our hardware system's resources efficiently.
Some commonly used O.S are Windows, RHEL, Ubuntu, iOS, MacOS etc.
But How does an OS sitting in my HDD initiates?
An OS is Initialized in the following manner:
BIOS Bootloader OS
BIOS/UEIF Initialization
The BIOS (Basic Input/Output System) or UEFI (Unified Extensible Firmware
Interface) initializes when the system is powered on.
It locates and loads the bootloader from a designated boot device (HDD, SSD,
USB).
Bootloader Execution
The bootloader (e.g., GRUB, LILO, or Windows Boot Manager) is a small
program responsible for loading the operating system.
It provides a user interface for selecting the OS (in dual/multi-boot setups) and
passes control to the OS kernel.
Kernel Loading
The bootloader loads the OS kernel into memory (RAM) and starts it.
The kernel initializes the core system resources (CPU, memory, storage) and
hardware drivers.
OS Initialization
The operating system starts essential processes and services.
1. Bare Metal --> This is the default OS on your system (eg. Windows 11 on a laptop, MacOS on Mac). This one is
capable of using all the hardware and compute and other resources to the fullest.
2. Virtualization --> VMware or VirtualBox are some software which use Hyper Virtualizer or HyperV from your
system and allows you to run and install multiple/different OS as Virtual Machines.
3. Cloud Service Providers --> Public Clouds like AWS, GCP, Azure are some known CSP, which provide IaaS and
you can access the VMs there.
4. Containerization --> Containers are lightweight, portable, and solve the "It works on my system" problem by
running as isolated, resource-efficient, plug-and-play servers.
An OS provides a GUI or a CLI way to interact with the applications and use the resources.
Why Linux is so popular?
Linux is an Open Source O.S, Open Source means that You can view the
source code of this OS and the softwares which are open source, their code
can be opened and viewed. This is the reason developers can contribute to
the code and create their personal OS or any application like firefox.
Linux is the most used Operating System across the globe. All the applications
we use eg. Netflix, Youtube etc... are hosted on linux only.
Cons: