2 OS Basics that I Misunderstood

Virtual Machine

A virtual machine is like a renting an apartment in a building. Let’s say you are a building owner and you have 10 apartments in your building and you use 4 apartments for your works and living. The rest 6 apartments are extra for you and you can either rent those apartments or just leave them empty.

If you choose to rent those apartments, the tenants are going to live on their own and you are not going to use their space or they are not going to use your space. In this scenario, the rented apartment can be called a virtual machine for your actual physical machine.

💡 Virtual Machines work as a completely separate physical machine or computer working on another physical machine or computer. The software that runs Virtual machine inside it is called a Hypervisor.

Read this article to know more details about virtual machines.

Kernel

Kernel is the heart of a operating system. It talks with the computer’s hardware system. The Kernel has 4 main objectives

  1. Device management

  2. Memory management

  3. Process management

  4. Handling System files

Read this article to know more details about Kernel.