<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dhakshitha S on Medium]]></title>
        <description><![CDATA[Stories by Dhakshitha S on Medium]]></description>
        <link>https://medium.com/@dhakshi081206?source=rss-32f5c1ebf9f6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*jxUVZKy34QGGlSGW</url>
            <title>Stories by Dhakshitha S on Medium</title>
            <link>https://medium.com/@dhakshi081206?source=rss-32f5c1ebf9f6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:55:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dhakshi081206/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Is My Operating System Constantly Lying to Me — And Why Is That Actually Good?]]></title>
            <link>https://medium.com/@dhakshi081206/is-my-operating-system-constantly-lying-to-me-and-why-is-that-actually-good-dae12ada3233?source=rss-32f5c1ebf9f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/dae12ada3233</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cpu]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[virtualization]]></category>
            <dc:creator><![CDATA[Dhakshitha S]]></dc:creator>
            <pubDate>Fri, 30 Jan 2026 13:32:22 GMT</pubDate>
            <atom:updated>2026-01-30T13:32:22.190Z</atom:updated>
            <content:encoded><![CDATA[<h3>Is My Operating System Constantly Lying to Me — And Why Is That Actually Good?</h3><blockquote><strong>Introduction</strong></blockquote><p>When I open multiple applications on my laptop — an IDE, a browser with dozens of tabs, a gaming software or a music player, and maybe even a virtual machine — it feels like each of them is running smoothly and independently. My system rarely complains. Memory doesn’t seem to “run-out”, and the CPU never feels overwhelmed. Yet, from what I know about hardware limits, this shouldn’t be possible. My computer has finite memory, limited CPU cores, and a single disk. So how does everything keep working? Does this wonder you?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*8in9QwyaF2ApEQ8JtQCOsg.png" /></figure><blockquote>The answer is both fascinating and slightly unsettling: <strong>my operating system is constantly lying to me.</strong></blockquote><blockquote><strong>What Do I Mean When I Say My Operating System Is “Lying”?</strong></blockquote><p>When I say that my operating system is “lying” to me, I don’t mean it’s doing something malicious or deceptive. Instead, it is carefully <em>hiding the truth</em> about how hardware resources are actually used. These “lies” are deliberate illusions that allow programs and users to interact with the computer safely, efficiently, and in a way that feels simple — even when the underlying reality is far more complex.</p><p>At the heart of this illusion is the concept of <strong>abstraction</strong>. Operating systems provide an abstracted view of hardware resources, so programs don’t have to manage raw memory addresses, CPU cores, or disk blocks directly. Instead, each application sees a clean, isolated environment that appears to be entirely its own. In reality, the OS is constantly juggling multiple programs, allocating memory, switching the CPU between tasks, and managing input/output devices — all behind the scenes.</p><blockquote><strong>The Biggest Illusion: How My OS Makes Memory Look Infinite</strong></blockquote><p>One of the most impressive — and sometimes surprising — ways my operating system “lies” to me is in how it manages memory. From the user’s perspective, each program seems to have access to as much memory as it needs. Yet, my laptop has limited RAM, and logically, it shouldn’t be able to handle all of this at once. So how is this possible?</p><p>The answer lies in a concept called <strong>virtual memory</strong>. Virtual memory allows the operating system to give each program the illusion of having its own large, continuous block of memory. In reality, this memory is divided into small chunks called <em>pages</em>, which the OS can move between the <strong>physical RAM</strong> and the <strong>disk</strong> as needed. This process is known as <strong>paging and swapping</strong>. From my point of view, it feels as if the program is using RAM directly, but behind the scenes, the OS is constantly mapping virtual addresses to physical locations.</p><p>Benefits from these illusions are:</p><p>First, it allows multiple programs to run at the same time without interfering with each other’s memory.</p><p>Second, it prevents crashes due to limited physical memory, because the OS can temporarily store less-used data on the disk.</p><p>And third, it simplifies programming — developers don’t need to worry about the exact memory location of every variable or data structure. The OS handles it all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*yxZVfvltvidA1wPa0ud0Og.png" /></figure><blockquote><strong>Why Every App Feels Like It Owns the CPU?</strong></blockquote><p>Another fascinating was my operating “lies” to me is in how it manages the CPU. From my perspective, every application seems to run simultaneously. I can compile a large project in my IDE, scroll through multiple browser tabs, and stream music — all without delay. Yet most modern computers have just a handful of CPU cores, which can execute only one instruction at a time per core<strong>.</strong> How does the OS make it feel like everything is running concurrently?</p><p>The answer lies in <strong>CPU scheduling, preemption, and context switching</strong>. The operating system divides CPU time into extremely small slices, often measured in <strong>microseconds or milliseconds</strong>, and assigns these slices to active processes. When a process’s time slice expires, the OS <strong>preempts</strong> it — pausing its execution, saving its state in the <strong>process control block (PCB)</strong>, and loading another process’s state. This process, called <strong>context switching</strong>, allows multiple processes to share the same CPU as if each had its own dedicated processor.</p><blockquote><strong>Virtualization and Containers: Multiple “Computers” on One Machine</strong></blockquote><p>One of the most impressive illusions my operating system can create is the feeling that my machine is hosting multiple independent computers simultaneously. Thanks to virtualization and containers, I can run several isolated environments on the same physical hardware, and each one behaves as if it owns its esources entirely. From the user’s perspective, it’s seamless: a Linux virtual machine on my Windows laptop, a Docker container running a web server, and my host system all operate without interfering with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ieqmo9aawXLIenTgGxyPUQ.png" /></figure><p>The underlying magic begins with virtualization. In full virtualization, a <strong>hypervisor</strong> acts as a middle layer between the hardware and the virtual machines (VMs). Type 1 hypervisors, like VMware ESXi, run directly on the hardware, while Type 2 hypervisors, like VirtualBox, run on top of an existing OS. Each VM is allocated a slice of CPU, memory, and disk, but it believes it has full control. The OS in the VM interacts with <strong>virtualized hardware</strong>, while the hypervisor maps these virtual requests to the real physical resources. This is the ultimate OS “lie”: each VM thinks it’s the only system running, but the hypervisor is constantly juggling multiple VMs behind the scenes.</p><p>Containers, on the other hand, take a slightly different approach. Technologies like <strong>Docker</strong> or <strong>LXC</strong> use <strong>OS-level virtualization</strong>, where all containers share the same host kernel but remain isolated through <strong>namespaces and cgroups</strong>. Each container believes it has its own filesystem, processes, and network stack. From my perspective, it’s a full-fledged mini-computer. Under the hood, the OS ensures resource isolation and manages CPU, memory, and I/O allocations among containers, creating a safe, high-performance illusion of independence.</p><blockquote><strong>Microkernels and Modular OD Designs: Smaller Lies, Bigger Control</strong></blockquote><p>One of the most fascinating developments in modern OS is the move toward microkernels and modular OS architectures. If additional monolithic kernels are like massive, all-powerful managers handling everything at once, microkernels are more like a small, highly efficient core team that delegates almost everything else to specialized assistants. From my perspective as a user, the system feels seamless and reliable — but behind the scenes, the OS is orchestrating multiple layers of abstraction, carefully hiding complexity while maintaining control.</p><p>In a <strong>monolithic OS</strong>, the kernel includes almost all core services: device drivers, file systems, networking, and process management. While powerful, this design can make the OS brittle; a bug in one component can crash the entire system. Microkernels, on the other hand, keep the core minimal, handling only essential tasks like <strong>inter-process communication (IPC), scheduling, and basic memory management</strong>. Everything else — drivers, file systems, network stacks — runs in <strong>user space</strong> as independent modules. The OS creates the illusion that these services are part of the kernel, even though they are actually separate processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*8yjXB4oAx32HTq6-sK7dsg.png" /></figure><p>This design offers several “lies” that benefit me without me noticing:</p><p><strong>1.Fault Isolation:</strong> If a device driver fails, it doesn’t crash the whole OS. I continue working uninterrupted.</p><p><strong>2.Modular Upgrades:</strong> Services can be updated or replaced independently, yet all applications behave as if the OS is consistent and unified.</p><p><strong>3.Security:</strong> Running drivers and services in user space limits their ability to damage core memory or compromise the system.</p><blockquote><strong>Why this illusion occurs?</strong></blockquote><p>After exploring how my operating system lies about memory, CPU, files, and even entire virtual machines, the natural question is: why does this matter? Wht wouls the OS go through all this effort to hide reality from me? The answer is that these illusions are not just clever tricks — they are essential for performance, security, reliability, and usability in modern computing.</p><p>First, the illusions allow <strong>multitasking to feel seamless</strong>. Virtual memory and CPU scheduling create the perception that each program has exclusive access to resources, while the OS manages hundreds or thousands of processes simultaneously. Without this, even simple multitasking would be chaotic: programs would conflict for memory, CPU cores, or I/O devices, and crashes would be common.</p><p>Second, these lies are critical for <strong>stability and fault isolation</strong>. Microkernels, modular designs, and process isolation ensure that a failure in one component or application does not bring down the entire system. From my point of view, everything continues running smoothly, even if part of the OS or a driver encounters a problem.</p><p>Third, the OS hides complexity to make <strong>software development practical</strong>. Developers don’t need to manage physical memory, coordinate CPU access manually, or implement low-level I/O handling. Instead, they interact with <strong>abstracted APIs and system calls</strong>, letting the OS handle the hard work behind the scenes. This abstraction accelerates development and reduces bugs.</p><p>Fourth, the illusions enhance <strong>performance</strong>. Techniques like caching, prefetching, and virtualization allow hardware to operate efficiently while giving me the impression of speed and abundance. I can open multiple applications, stream video, and run virtual machines, all without perceiving the underlying constraints of hardware limits.</p><p>Finally, these lies are central to <strong>security</strong>. User mode vs kernel mode, process isolation, and sandboxing create boundaries that prevent applications from interfering with each other or the system. From my perspective, programs behave independently, but the OS is constantly enforcing rules that protect both the system and my data.</p><blockquote><strong>Conclusion</strong></blockquote><p>My operating system is constantly “lying” to me — but these lies are exactly what make modern computing possible. From virtual memory to CPU scheduling, containers, and modular kernels, the OS hides complexity, manages resources, and keeps everything running smoothly. These illusions allow multitasking, improve performance, enhance security, and make software development practical.</p><p>In short, the OS doesn’t lie to trick me — it lies to <strong>protect me, simplify my work, and make my computer feel powerful and effortless</strong>. Every seamless experience I enjoy is the result of countless invisible orchestrations happening behind the scenes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dae12ada3233" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>